Пример #1
0
 public static void ToEntity(DT.ResourcePermission source, DB.ResourcePermission target)
 {
     if ((source != null) && (target != null))
     {
         target.ResourceId = source.ResourceId; target.GrantedUserId = source.GrantedUserId; target.GrantedByUserId = source.GrantedByUserId;
     }
 }
Пример #2
0
 public static void CopyToEntity(this DT.ResourcePermission source, DA.ResourcePermission target)
 {
     if ((source == null) || (target == null))
     {
         return;
     }
     target.ResourceId      = source.ResourceId;
     target.GrantedUserId   = source.GrantedUserId;
     target.GrantedByUserId = source.GrantedByUserId;
 }
Пример #3
0
        public static DB.ResourcePermission ToEntity(DT.ResourcePermission source)
        {
            if (source == null)
            {
                return(null);
            }
            var entity = new DB.ResourcePermission(); ToEntity(source, entity);

            return(entity);
        }
Пример #4
0
 public static DT.ResourcePermission ToDto(DB.ResourcePermission source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new DT.ResourcePermission {
         ResourceId = source.ResourceId, GrantedUserId = source.GrantedUserId, GrantedByUserId = source.GrantedByUserId
     });
 }
Пример #5
0
        public static DA.ResourcePermission ToEntity(this DT.ResourcePermission source)
        {
            if (source == null)
            {
                return(null);
            }
            var result = new DA.ResourcePermission();

            source.CopyToEntity(result);
            return(result);
        }
Пример #6
0
 public static DB.ResourcePermission ToEntity(DT.ResourcePermission source) {
   if (source == null) return null;
   var entity = new DB.ResourcePermission(); ToEntity(source, entity);
   return entity;
 }
Пример #7
0
 public static DA.ResourcePermission ToEntity(this DT.ResourcePermission source) {
   if (source == null) return null;
   var result = new DA.ResourcePermission();
   source.CopyToEntity(result);
   return result;
 }
 partial void DeleteResourcePermission(ResourcePermission instance);
 partial void UpdateResourcePermission(ResourcePermission instance);
 partial void InsertResourcePermission(ResourcePermission instance);
		private void detach_ResourcePermissions(ResourcePermission entity)
		{
			this.SendPropertyChanging();
			entity.Resource = null;
		}