Skip to content

Commit

Permalink
Released 1.0.12=beta:
Browse files Browse the repository at this point in the history
* Changed the visibility of the field _id in the classes vm.Aspects.Model.DomainEntity and  vm.Aspects.Model.DomainValue from private to protected.
This will allow the inheritors to modify the behavior of the property Id, without unnecessary duplicating the backing field.
* The property Id was applied the attributes KeyAttribute and ColumnAttribute with argument Order=0.
* Marked both classes with CLSCompatible(false). This will allow the inheritors to use types like uint or ulong for the properties Id,
which are usually mapped to the primary key of the corresponding DB tables. Negative Id-s (PK-s) do not make a lot of sense.
vmelamed committed Dec 25, 2015
1 parent 1af4dfb commit 956f9ee
Showing 9 changed files with 28 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>AspectExpressionSerialization</id>
<version>1.0.11</version>
<version>1.0.12</version>
<authors>Val Melamed</authors>
<owners>Val Melamed</owners>
<summary>
Original file line number Diff line number Diff line change
@@ -4,9 +4,9 @@
[assembly: AssemblyTitle("vm.Aspects.Linq.Expressions.Serialization")]
[assembly: AssemblyDescription("Serializes and deserializes LINQ expression trees to and from XML documents.")]

[assembly: AssemblyVersion("1.0.11")]
[assembly: AssemblyFileVersion("1.0.11")]
[assembly: AssemblyInformationalVersion("1.0.11")]
[assembly: AssemblyVersion("1.0.12")]
[assembly: AssemblyFileVersion("1.0.12")]
[assembly: AssemblyInformationalVersion("1.0.12")]

[assembly: InternalsVisibleTo(
"vm.Aspects.Linq.Expressions.Serialization.Test, " +
3 changes: 3 additions & 0 deletions Aspects/Model/DomainEntity.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using vm.Aspects.Model.Repository;
@@ -42,8 +43,10 @@ public override bool HasIdentity

/// <summary>
/// Gets or sets the store identifier.
/// The property is applied the attributes <see cref="KeyAttribute"/> and <see cref="ColumnAttribute"/> with parameter <c>Order = 0</c>.
/// </summary>
[Key]
[Column(Order = 0)]
public virtual TId Id
{
get { return _id; }
3 changes: 3 additions & 0 deletions Aspects/Model/DomainValue.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;

@@ -24,8 +25,10 @@ public abstract class DomainValue<TId> : BaseDomainValue,

/// <summary>
/// Gets or sets the store identifier.
/// The property is applied the attributes <see cref="KeyAttribute"/> and <see cref="ColumnAttribute"/> with parameter <c>Order = 0</c>.
/// </summary>
[Key]
[Column(Order = 0)]
public virtual TId Id
{
get { return _id; }
6 changes: 3 additions & 3 deletions Aspects/Model/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -3,9 +3,9 @@
[assembly: AssemblyTitle("vm.Aspect.Model")]
[assembly: AssemblyDescription("Defines the IRepository and related base classes and utilities - a framework of building domain object model.")]

[assembly: AssemblyVersion("1.0.11")]
[assembly: AssemblyFileVersion("1.0.11")]
[assembly: AssemblyInformationalVersion("1.0.11")]
[assembly: AssemblyVersion("1.0.12")]
[assembly: AssemblyFileVersion("1.0.12")]
[assembly: AssemblyInformationalVersion("1.0.12")]

[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(
"vm.Aspects.Model.Tests, " +
11 changes: 6 additions & 5 deletions Aspects/NuGet/vm.Aspects.nuspec
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>vm.Aspects</id>
<version>1.0.11-beta</version>
<version>1.0.12-beta</version>
<authors>Val Melamed</authors>
<owners>Val Melamed</owners>
<summary>
@@ -12,10 +12,11 @@
A set of classes, utilities, etc. addressing various common cross-cutting concerns or extending existing similar libraries like Enterprise Library, Unity, etc.
</description>
<releaseNotes>
* Changed the visibility of the field _id in the classes vm.Aspects.Model.DomainEntity and vm.Aspects.Model.DomainValue from private to protected.
This will allow the inheritors to modify the behavior of the property Id, without unnecessary duplicating the backing field.
* Marked both classes with CLSCompatible(false). This will allow the inheritors to use types like uint or ulong for the properties Id,
which are usually mapped to the primary key of the corresponding DB tables. Negative Id-s (PK-s) do not make a lot of sense.
* Changed the visibility of the field _id in the classes vm.Aspects.Model.DomainEntity and vm.Aspects.Model.DomainValue from private to protected.
This will allow the inheritors to modify the behavior of the property Id, without unnecessary duplicating the backing field.
* The property Id was applied the attributes KeyAttribute and ColumnAttribute with argument Order=0.
* Marked both classes with CLSCompatible(false). This will allow the inheritors to use types like uint or ulong for the properties Id,
which are usually mapped to the primary key of the corresponding DB tables. Negative Id-s (PK-s) do not make a lot of sense.
</releaseNotes>
<licenseUrl>https://github.com/vmelamed/vm/blob/master/LICENSE</licenseUrl>
<projectUrl>https://github.com/vmelamed/vm/tree/master/Aspects</projectUrl>
6 changes: 3 additions & 3 deletions Aspects/Parsers/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -6,9 +6,9 @@
[assembly: AssemblyTitle("vm.Aspects.Parser")]
[assembly: AssemblyDescription("Text parsing readers, e.g. CSV/TSV reader.")]

[assembly: AssemblyVersion("1.0.11")]
[assembly: AssemblyFileVersion("1.0.11")]
[assembly: AssemblyInformationalVersion("1.0.11")]
[assembly: AssemblyVersion("1.0.12")]
[assembly: AssemblyFileVersion("1.0.12")]
[assembly: AssemblyInformationalVersion("1.0.12")]

[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(
"vm.Aspects.Parsers.Tests, " +
6 changes: 3 additions & 3 deletions Aspects/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@

[assembly: AssemblyTitle("vm.Aspects")]
[assembly: AssemblyDescription("A set of classes addressing various common cross-cutting concerns.")]
[assembly: AssemblyVersion("1.0.11")]
[assembly: AssemblyFileVersion("1.0.11")]
[assembly: AssemblyInformationalVersion("1.0.11")]
[assembly: AssemblyVersion("1.0.12")]
[assembly: AssemblyFileVersion("1.0.12")]
[assembly: AssemblyInformationalVersion("1.0.12")]


[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(
6 changes: 3 additions & 3 deletions Aspects/Wcf/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -3,9 +3,9 @@
[assembly: AssemblyTitle("Wcf")]
[assembly: AssemblyDescription("A set of classes and generics simplifying the initial configuration work of creating WCF services.")]

[assembly: AssemblyVersion("1.0.11")]
[assembly: AssemblyFileVersion("1.0.11")]
[assembly: AssemblyInformationalVersion("1.0.11")]
[assembly: AssemblyVersion("1.0.12")]
[assembly: AssemblyFileVersion("1.0.12")]
[assembly: AssemblyInformationalVersion("1.0.12")]

[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(
"vm.Aspects.Wcf.Test, " +

0 comments on commit 956f9ee

Please sign in to comment.