EntityMappingDBEmitCore 1.0.0

dotnet add package EntityMappingDBEmitCore --version 1.0.0                
NuGet\Install-Package EntityMappingDBEmitCore -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EntityMappingDBEmitCore" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntityMappingDBEmitCore --version 1.0.0                
#r "nuget: EntityMappingDBEmitCore, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EntityMappingDBEmitCore as a Cake Addin
#addin nuget:?package=EntityMappingDBEmitCore&version=1.0.0

// Install EntityMappingDBEmitCore as a Cake Tool
#tool nuget:?package=EntityMappingDBEmitCore&version=1.0.0                

EntityMappingDBEmit

DB与实体转换

采用emit方法DataTable,IDataReader与实体相互转换。

DataTable,IDataReader转换实体: ToEntityList扩展方法

实体转换DataTable: FromEntityToTable扩展方法

如果实体转换DataTable带有特性: FromEntityToTableMap扩展方法

我设计了三类特性ColumnType(列类型映射),DataField(列名称映射),NoColumn(没有对应的列,忽略该属性)

没有使用高级语法糖,应该.net 4.0及以上都可以,如果使用了低版本的.net,直接复制源码文件即可; 该项目是支持.net core库的,我没有弄.net framework的,如果需要直接建立一个.net framework库,把文件添加进去即可,我已经测试但是没有提供。

说明: 不出意外,该项目没有升级的必要,除非emit技术有更新;
最后因为.net standard不支持emit实现,如果发布的版本支持以后将实现.net standard版本;该项目会直接替换库类型,名称不变。

该项目已经被EntityMappingDBEmit代替

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 is compatible.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 596 3/3/2019

支持.net core库采用emit方法DataTable,DataReader与实体相互转换