示例#1
0
 //для обновления
 internal static void ToOrmRole(DalRole dalrole, OrmRole inThisOrmRole)
 {
     inThisOrmRole.Name = dalrole.Name;
     inThisOrmRole.Description = dalrole.Description;
 }
示例#2
0
 internal static DalRole ToDalRole(OrmRole ormrole)
 {
  if(ormrole!=null) return new DalRole()
     {
         Id = ormrole.Id,
         Name = ormrole.Name,
         Description = ormrole.Description
     };
  return null;
 }