2011-01-30 07:14:05 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using FluentNHibernate.Mapping;
|
|
|
|
|
using System.Collections.Generic;
|
2011-02-18 16:54:48 +00:00
|
|
|
|
using Tanshu.Accounts.Contracts;
|
2011-01-30 07:14:05 +00:00
|
|
|
|
|
|
|
|
|
namespace Tanshu.Accounts.Entities.Auth
|
|
|
|
|
{
|
|
|
|
|
public class Group
|
|
|
|
|
{
|
|
|
|
|
public virtual int GroupID { get; set; }
|
2011-02-18 16:54:48 +00:00
|
|
|
|
[NotNull, Unique]
|
2011-01-30 07:14:05 +00:00
|
|
|
|
public virtual string Name { get; set; }
|
|
|
|
|
public virtual IList<RoleGroup> RoleGroups { get; set; }
|
|
|
|
|
public virtual IList<UserGroup> UserGroups { get; set; }
|
|
|
|
|
public Group()
|
|
|
|
|
{
|
|
|
|
|
RoleGroups = new List<RoleGroup>();
|
|
|
|
|
UserGroups = new List<UserGroup>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|