EntityMappingDB 1.4.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package EntityMappingDB --version 1.4.6                
NuGet\Install-Package EntityMappingDB -Version 1.4.6                
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="EntityMappingDB" Version="1.4.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntityMappingDB --version 1.4.6                
#r "nuget: EntityMappingDB, 1.4.6"                
#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 EntityMappingDB as a Cake Addin
#addin nuget:?package=EntityMappingDB&version=1.4.6

// Install EntityMappingDB as a Cake Tool
#tool nuget:?package=EntityMappingDB&version=1.4.6                

EntityMappingDB

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

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

3.实体转换DataTable: FromEntityToTable扩展方法

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

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

没有使用高级语法糖,应该.net 4.0及以上都可。 已经是.net standard版本

说明:
1.如果程序报错:没有找到列,则说明你使用了不同的数据转model,但是这些数据不一样。这时你可以使用重载方法,定一个唯一key

2.不出意外,该项目没有升级的必要,除非emit技术有更新
程序中默认使用了缓存,datatable需要不同的名称来区分并且使用缓存

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on EntityMappingDB:

Package Downloads
Hikari.Integration.Entity

实体转换(采用Emit,DataTable,DataReader与List<T>相互转换) 替换其它扩展库 个人贡献,任意使用,希望保留版本和作者注释

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.4.8 161 9/27/2023
1.4.7 169 5/16/2023
1.4.6 193 4/19/2023
1.4.5 497 10/2/2021
1.4.4 474 7/6/2020
1.4.3 484 4/20/2020
1.3.3 492 3/20/2020
1.3.2 465 3/19/2020
1.3.0 444 3/11/2020
1.2.2 500 2/15/2020
1.2.1 539 2/12/2020
1.1.1 668 4/6/2019
1.1.0 1,426 3/20/2019

修改decimal转换bug