Breaking Changes. Upgrade Script in Sql directory. Deployed

This commit is contained in:
unknown
2011-02-18 22:24:48 +05:30
parent d4cfa92848
commit 9ed5843dbd
86 changed files with 2616 additions and 2358 deletions

View File

@ -2,12 +2,14 @@
using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.Entities.Auth
{
public class Group
{
public virtual int GroupID { get; set; }
[NotNull, Unique]
public virtual string Name { get; set; }
public virtual IList<RoleGroup> RoleGroups { get; set; }
public virtual IList<UserGroup> UserGroups { get; set; }

View File

@ -2,12 +2,14 @@
using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.Entities.Auth
{
public class Role
{
public virtual int RoleID { get; set; }
[NotNull, Unique]
public virtual string Name { get; set; }
public virtual IList<RoleGroup> Groups { get; set; }

View File

@ -1,13 +1,16 @@
using System;
using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.Entities.Auth
{
public class RoleGroup
{
public virtual int RoleGroupID { get; set; }
[NotNull]
public virtual Role Role { get; set; }
[NotNull]
public virtual Group Group { get; set; }
}
}

View File

@ -2,14 +2,19 @@
using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using System.Collections.Generic;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.Entities.Auth
{
public class User
{
public virtual int UserID { get; set; }
[Unique] [NotNull]
public virtual string Name { get; set; }
public virtual string MsrString { get; set; }
[NotNull]
public virtual string Password { get; set; }
[NotNull]
public virtual bool LockedOut { get; set; }
public virtual IList<UserGroup> UserGroups { get; set; }
public User()

View File

@ -1,13 +1,16 @@
using System;
using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using Tanshu.Accounts.Contracts;
namespace Tanshu.Accounts.Entities.Auth
{
public class UserGroup
{
public virtual int UserGroupID { get; set; }
[NotNull]
public virtual User User { get; set; }
[NotNull]
public virtual Group Group { get; set; }
}
}