public AuthRule( Auth auth )
: this()
{
Id = auth.Id;
EntityId = auth.EntityId;
AllowOrDeny = auth.AllowOrDeny == "A" ? 'A' : 'D';
SpecialRole = auth.SpecialRole;
PersonId = auth.PersonAlias != null ? auth.PersonAlias.PersonId : ( int? ) null;
PersonAliasId = auth.PersonAliasId;
GroupId = auth.GroupId;
Order = auth.Order;
}