91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 42.01MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-08-04
  • 語言: C#
  • 標(biāo)簽: MVC+EF+Linq??C#框架??

資源簡介

C# 用于MVC+EF+Linq等技術(shù)封裝的框架,該框架提供所有源碼,包括一些公共類方法,如日志、操作圖片、操作XML、WIN服務(wù)、加解密等工能,是一款不錯的MVC WEB框架,大部代碼可以用本站內(nèi)C#開發(fā)利器生成!

資源截圖

代碼片段和文件信息

using?DAL;
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?Model.EF;

namespace?BLL
{
????///?
????///?功能說明:基礎(chǔ)業(yè)務(wù)方法
????///?創(chuàng)建時間:2017-05-27
????///?創(chuàng)建人:樊軍虎
????///?

????public?class?baseService
????{
????????#region?數(shù)據(jù)實體轉(zhuǎn)視圖實體======================================
????????///?
????????///?數(shù)據(jù)實體轉(zhuǎn)視圖實體
????????///?

????????///?視圖實體
????????///?數(shù)據(jù)實體
????????protected?void?GetMode(V?viewMode1?M?dataMode1)
????????{
????????????var?col?=?(System.Reflection.PropertyInfo)null;
????????????var?dm?=?dataMode1.GetType().GetProperties(System.Reflection.BindingFlags.Instance?|?System.Reflection.BindingFlags.Public);//從數(shù)據(jù)查到的Model
????????????var?vm?=?viewMode1.GetType().GetProperties(System.Reflection.BindingFlags.Instance?|?System.Reflection.BindingFlags.Public);//從輸出展示的Model

????????????//遍歷從數(shù)據(jù)庫查找出的Model
????????????foreach?(var?item?in?dm)
????????????{
????????????????//獲得與展示Model相同值和屬性的列
????????????????col?=?vm.FirstOrDefault(z?=>?z.PropertyType.FullName?==?item.PropertyType.FullName?&&?z.Name?==?item.Name);
????????????????if?(col?!=?null)
????????????????{
????????????????????col.SetValue(viewMode1?item.GetValue(dataMode1?null)?null);
????????????????}
????????????}
????????}
????????#endregion

????????#region?視圖實體轉(zhuǎn)數(shù)據(jù)實體======================================
????????///?
????????///?視圖實體轉(zhuǎn)數(shù)據(jù)實體
????????///?

????????///?視圖實體
????????///?數(shù)據(jù)實體
????????protected?void?SetMode(V?viewMode1?M?dataMode1)
????????{
????????????var?col?=?(System.Reflection.PropertyInfo)null;
????????????var?dm?=?dataMode1.GetType().GetProperties(System.Reflection.BindingFlags.Instance?|?System.Reflection.BindingFlags.Public);//從數(shù)據(jù)查到的Model
????????????var?vm?=?viewMode1.GetType().GetProperties(System.Reflection.BindingFlags.Instance?|?System.Reflection.BindingFlags.Public);//從輸出展示的Model

????????????//遍歷視圖Model
????????????foreach?(var?item?in?vm)
????????????{
????????????????//獲得與展示Model相同值和屬性的列
????????????????col?=?dm.FirstOrDefault(z?=>?z.PropertyType.FullName?==?item.PropertyType.FullName?&&?z.Name?==?item.Name);
????????????????if?(col?!=?null)
????????????????{
????????????????????col.SetValue(dataMode1?item.GetValue(viewMode1?null)?null);
????????????????}
????????????}
????????}
????????#endregion

????????#region?基礎(chǔ)業(yè)務(wù)邏輯
????????private?baseRepository?employeesDal;

????????///?
????????///?SYS_Employees(員工檔案)
????????///?

????????public?baseRepository?_employeesDal
????????{
????????????get
????????????{
????????????????if?(employeesDal?==?null)
????????????????{
????????????????????employeesDal?=?new?baseRepository();
????????????????}
????????????????return?employeesDal;
????????????}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????85856??2017-03-29?14:41??KJ\.vs\config\applicationhost.config

????..A..H.????252928??2017-06-17?17:14??KJ\.vs\KJ\v14\.suo

?????文件???????5553??2017-06-02?09:14??KJ\BLL\baseService.cs

?????文件??????24064??2017-06-05?16:46??KJ\BLL\bin\Debug\BLL.dll

?????文件??????42496??2017-06-05?16:46??KJ\BLL\bin\Debug\BLL.pdb

?????文件??????15360??2017-06-05?16:46??KJ\BLL\bin\Debug\Common.dll

?????文件??????36352??2017-06-05?16:46??KJ\BLL\bin\Debug\Common.pdb

?????文件??????13312??2017-06-05?16:46??KJ\BLL\bin\Debug\DAL.dll

?????文件??????38400??2017-06-05?16:46??KJ\BLL\bin\Debug\DAL.pdb

?????文件????5196496??2017-06-01?14:24??KJ\BLL\bin\Debug\Entityframework.dll

?????文件????3652961??2017-06-01?14:24??KJ\BLL\bin\Debug\Entityframework.xml

?????文件??????31232??2017-06-05?16:46??KJ\BLL\bin\Debug\Model.dll

?????文件??????44544??2017-06-05?16:46??KJ\BLL\bin\Debug\Model.pdb

?????文件???????8704??2017-06-05?16:46??KJ\BLL\bin\Debug\ViewModel.dll

?????文件??????24064??2017-06-05?16:46??KJ\BLL\bin\Debug\ViewModel.pdb

?????文件???????5632??2017-03-26?12:18??KJ\BLL\bin\Release\BLL.dll

?????文件??????17920??2017-03-26?12:18??KJ\BLL\bin\Release\BLL.pdb

?????文件??????14336??2017-03-26?09:02??KJ\BLL\bin\Release\Common.dll

?????文件??????32256??2017-03-26?09:02??KJ\BLL\bin\Release\Common.pdb

?????文件??????12288??2017-03-26?12:18??KJ\BLL\bin\Release\DAL.dll

?????文件??????38400??2017-03-26?12:18??KJ\BLL\bin\Release\DAL.pdb

?????文件????1118296??2017-03-18?12:59??KJ\BLL\bin\Release\Entityframework.dll

?????文件????1142742??2017-03-18?12:59??KJ\BLL\bin\Release\Entityframework.xml

?????文件??????12288??2017-03-26?09:02??KJ\BLL\bin\Release\Model.dll

?????文件??????11776??2017-03-26?09:02??KJ\BLL\bin\Release\Model.pdb

?????文件??????71256??2017-03-18?12:59??KJ\BLL\bin\Release\zh-Hans\Entityframework.resources.dll

?????文件???????3413??2017-06-01?15:45??KJ\BLL\BLL.csproj

?????文件????????829??2017-06-05?16:46??KJ\BLL\obj\Debug\BLL.csproj.FileListAbsolute.txt

?????文件??????27309??2017-06-05?16:46??KJ\BLL\obj\Debug\BLL.csprojResolveAssemblyReference.cache

?????文件??????24064??2017-06-05?16:46??KJ\BLL\obj\Debug\BLL.dll

............此處省略1160個文件信息

評論

共有 條評論