Skip to content

Commit

Permalink
Merge remote branch 'sandord/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
seif committed Apr 30, 2012
2 parents 021adf0 + 0b3c698 commit bc062d0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace SharpArch.Domain.DomainModel
/// This is intended for use with <see cref = "Entity" />. It may NOT be used on a <see cref = "ValueObject" />.
/// </remarks>
[Serializable]
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class DomainSignatureAttribute : Attribute
{
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace SharpArch.NHibernate.NHibernateValidator
{
using System;
using System.ComponentModel.DataAnnotations;

using SharpArch.Domain;
Expand All @@ -13,6 +14,7 @@
/// Due to the fact that .NET does not support generic attributes, this only works for entity
/// types having an Id of type int.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class HasUniqueDomainSignatureAttribute : ValidationAttribute
{
public HasUniqueDomainSignatureAttribute()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ namespace SharpArch.NHibernate.NHibernateValidator
using SharpArch.Domain.DomainModel;
using SharpArch.Domain.PersistenceSupport;

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class HasUniqueDomainSignatureWithGuidIdAttribute : ValidationAttribute
{
public HasUniqueDomainSignatureWithGuidIdAttribute()
Expand Down
2 changes: 1 addition & 1 deletion Solutions/SharpArch.NHibernate/SessionFactoryAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// communicate with the database. This allows you to declare different repositories to
/// communicate with different databases.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class SessionFactoryAttribute : Attribute
{
public readonly string FactoryKey;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
namespace SharpArch.NHibernate.NHibernateValidator
{
using System;
using System.ComponentModel.DataAnnotations;

using SharpArch.Domain;
using SharpArch.Domain.DomainModel;
using SharpArch.Domain.PersistenceSupport;

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class HasUniqueDomainSignatureWithStringIdAttribute : ValidationAttribute
{
public HasUniqueDomainSignatureWithStringIdAttribute()
Expand Down

0 comments on commit bc062d0

Please sign in to comment.