Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit 07e70f8

Browse files
authored
Merge pull request #116 from linq2db/version3
Release 3.9.5
2 parents 0f0387c + 6bbc102 commit 07e70f8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Build/linq2db.Default.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>3.9.4</Version>
3+
<Version>3.9.5</Version>
44

55
<Authors>Svyatoslav Danyliv, Igor Tkachev, Dmitry Lukashenko, Ilya Chudin</Authors>
66
<Product>Linq to DB</Product>

Source/LinqToDB.EntityFrameworkCore/EFCoreMetadataReader.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ public T[] GetAttributes<T>(Type type, MemberInfo memberInfo, bool inherit = tru
152152
var isIdentity = prop.GetAnnotations()
153153
.Any(a => a.Name.EndsWith(":ValueGenerationStrategy") && a.Value?.ToString() == "IdentityColumn");
154154

155+
if (!isIdentity && isPrimaryKey)
156+
{
157+
isIdentity = prop.ValueGenerated == ValueGenerated.OnAdd;
158+
}
159+
155160
return new T[]{(T)(Attribute) new ColumnAttribute
156161
{
157162
Name = prop.GetColumnName(),

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
variables:
22
solution: 'linq2db.EFCore.sln'
33
build_configuration: 'Release'
4-
assemblyVersion: 3.9.4
5-
nugetVersion: 3.9.4
4+
assemblyVersion: 3.9.5
5+
nugetVersion: 3.9.5
66
artifact_nugets: 'nugets'
77

88
# build on commits to important branches (master + release branches):

0 commit comments

Comments
 (0)