mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-24 19:52:51 +08:00

- 增加 BaseRepository.AttachOnlyPrimary 方法,只附加实体的主键值; > 在更新前使用可实现不查询数据库再更新、也可以实现更新时不更新值为 null 的字段 ```csharp class T { public int id { get; set; } public string name { get; set; } public string other { get; set; } } var item = new T { id = 1, name = "xx" }; fsql.GetRepository<T>().AttachOnlyPrimary(item).Update(item); //只更新 name ``` - 修复 Lambda 表达式中 DateTime.Now.ToString("yyyyMMdd") 不能直接执行的 bug;
25 lines
1.0 KiB
XML
25 lines
1.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
|
|
<Version>0.9.16</Version>
|
|
<Authors>YeXiangQin</Authors>
|
|
<Description>FreeSql Implementation of General Repository, Support MySql/SqlServer/PostgreSQL/Oracle/Sqlite, and read/write separation、and split table.</Description>
|
|
<PackageProjectUrl>https://github.com/2881099/FreeSql/wiki/Repository</PackageProjectUrl>
|
|
<PackageTags>FreeSql ORM Repository</PackageTags>
|
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
|
<RepositoryType>git</RepositoryType>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
<PackageId>$(AssemblyName)</PackageId>
|
|
<PackageIconUrl>https://github.com/2881099/FreeSql/blob/master/logo.png?raw=true</PackageIconUrl>
|
|
<Title>$(AssemblyName)</Title>
|
|
<IsPackable>true</IsPackable>
|
|
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\FreeSql.DbContext\FreeSql.DbContext.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|