Example #1
0
 public static void ToEntity(DT.Plugin source, DB.Plugin target)
 {
     if ((source != null) && (target != null))
     {
         target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); target.UserId = source.UserId; target.DateCreated = source.DateCreated; target.Hash = source.Hash;
     }
 }
Example #2
0
 public static DT.Plugin ToDto(DB.Plugin source)
 {
     if (source == null)
     {
         return(null);
     }
     return(new DT.Plugin {
         Id = source.PluginId, Name = source.Name, Version = new Version(source.Version), UserId = source.UserId, DateCreated = source.DateCreated, Hash = source.Hash
     });
 }
Example #3
0
        public static DB.Plugin ToEntity(DT.Plugin source)
        {
            if (source == null)
            {
                return(null);
            }
            var entity = new DB.Plugin(); ToEntity(source, entity);

            return(entity);
        }
Example #4
0
        public static DA.Plugin ToEntity(this DT.Plugin source)
        {
            if (source == null)
            {
                return(null);
            }
            var result = new DA.Plugin();

            source.CopyToEntity(result);
            return(result);
        }
Example #5
0
 public static void CopyToEntity(this DT.Plugin source, DA.Plugin target)
 {
     if ((source == null) || (target == null))
     {
         return;
     }
     target.PluginId    = source.Id;
     target.Name        = source.Name;
     target.Version     = source.Version.ToString();
     target.UserId      = source.UserId;
     target.DateCreated = source.DateCreated;
     target.Hash        = source.Hash;
 }
Example #6
0
 public static DB.Plugin ToEntity(DT.Plugin source) {
   if (source == null) return null;
   var entity = new DB.Plugin(); ToEntity(source, entity);
   return entity;
 }
Example #7
0
 public static DA.Plugin ToEntity(this DT.Plugin source) {
   if (source == null) return null;
   var result = new DA.Plugin();
   source.CopyToEntity(result);
   return result;
 }
 partial void DeletePlugin(Plugin instance);
 partial void UpdatePlugin(Plugin instance);
 partial void InsertPlugin(Plugin instance);
Example #11
0
 public static void ToEntity(DT.Plugin source, Plugin target) {
   if ((source != null) && (target != null)) {
     target.PluginId = source.Id; target.Name = source.Name; target.Version = source.Version.ToString(); target.UserId = source.UserId; target.DateCreated = source.DateCreated; target.Hash = source.Hash;
   }
 }
Example #12
0
 public static DT.Plugin ToDto(Plugin source) {
   if (source == null) return null;
   return new DT.Plugin { Id = source.PluginId, Name = source.Name, Version = new Version(source.Version), UserId = source.UserId, DateCreated = source.DateCreated, Hash = source.Hash };
 }