示例#1
0
 //**********************************************************
 //* Добавление нового Mlwr
 //**********************************************************
 public static void AddMlwr(String name, String path, Int32 loadedBy)
 {
     using (SandBoxDataContext db = new SandBoxDataContext())
     {
         Mlwr mlwr = new Mlwr()
                       {
                           Name = name,
                           Path = path,
                           ResearchCount = 0,
                           Class = 0,
                           LoadedDate = DateTime.Now,
                           LoadedBy = loadedBy
         };
         db.Mlwrs.InsertOnSubmit(mlwr);
         db.SubmitChanges();
     }
     TableUpdated(Table.MLWRS);
 }
示例#2
0
 //**********************************************************
 //* Добавление нового Mlwr
 //**********************************************************
 public static void AddMlwr(String name, String path, Int32 loadedBy, String md5, String sha1, String sha256)
 {
     using (SandBoxDataContext db = new SandBoxDataContext())
     {
         Mlwr mlwr = new Mlwr()
                       {
                           Name = name,
                           Path = path,
                           ResearchCount = 0,
                           Class = null,
                           LoadedDate = DateTime.Now,
                           LoadedBy = loadedBy,
                           md5 = md5,
                           sha1 = sha1,
                           sha256 = sha256,
                           IsDeleted = 0
         };
         db.Mlwrs.InsertOnSubmit(mlwr);
         db.SubmitChanges();
     }
     TableUpdated(Table.MLWRS);
 }
示例#3
0
 partial void UpdateMlwr(Mlwr instance);
示例#4
0
 partial void DeleteMlwr(Mlwr instance);
示例#5
0
 partial void InsertMlwr(Mlwr instance);