예제 #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 DB.PluginData ToEntity(DT.PluginData source)
        {
            if (source == null)
            {
                return(null);
            }
            var entity = new DB.PluginData(); ToEntity(source, entity);

            return(entity);
        }
예제 #3
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;
 }
예제 #4
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);
        }