示例#1
0
 public static void ToEntity(DT.PluginData source, DB.PluginData target)
 {
     if ((source != null) && (target != null))
     {
         target.PluginDataId = source.Id;
         target.PluginId     = source.PluginId;
         target.Data         = source.Data;
         target.FileName     = source.FileName;
     }
 }
示例#2
0
 public static DT.PluginData ToDto(DB.PluginData source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new DT.PluginData {
         Id = source.PluginDataId, PluginId = source.PluginId, Data = source.Data.ToArray(), FileName = source.FileName
     });
 }
示例#3
0
        public static DB.PluginData ToEntity(DT.PluginData source)
        {
            if (source == null)
            {
                return(null);
            }
            var entity = new DB.PluginData(); ToEntity(source, entity);

            return(entity);
        }
示例#4
0
 public static void CopyToEntity(this DT.PluginData source, DA.PluginData target)
 {
     if ((source == null) || (target == null))
     {
         return;
     }
     target.PluginDataId = source.Id;
     target.PluginId     = source.PluginId;
     target.Data         = source.Data;
     target.FileName     = source.FileName;
 }
示例#5
0
        public static DA.PluginData ToEntity(this DT.PluginData source)
        {
            if (source == null)
            {
                return(null);
            }
            var result = new DA.PluginData();

            source.CopyToEntity(result);
            return(result);
        }
示例#6
0
 public static DB.PluginData ToEntity(DT.PluginData source) {
   if (source == null) return null;
   var entity = new DB.PluginData(); ToEntity(source, entity);
   return entity;
 }
示例#7
0
 public static DA.PluginData ToEntity(this DT.PluginData source) {
   if (source == null) return null;
   var result = new DA.PluginData();
   source.CopyToEntity(result);
   return result;
 }
		private void attach_PluginData(PluginData entity)
		{
			this.SendPropertyChanging();
			entity.Plugin = this;
		}
		private void detach_PluginData(PluginData entity)
		{
			this.SendPropertyChanging();
			entity.Plugin = null;
		}
 partial void DeletePluginData(PluginData instance);
 partial void UpdatePluginData(PluginData instance);
 partial void InsertPluginData(PluginData instance);
示例#13
0
 public static void ToEntity(DT.PluginData source, PluginData target) {
   if ((source != null) && (target != null)) {
     target.PluginDataId = source.Id; target.PluginId = source.PluginId; target.Data = new Binary(source.Data); target.FileName = source.FileName;
   }
 }
示例#14
0
 public static DT.PluginData ToDto(PluginData source) {
   if (source == null) return null;
   return new DT.PluginData { Id = source.PluginDataId, PluginId = source.PluginId, Data = source.Data.ToArray(), FileName = source.FileName };
 }