//********************************************************** //* Добавление нового 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); }
//********************************************************** //* Добавление нового 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); }
partial void UpdateMlwr(Mlwr instance);
partial void DeleteMlwr(Mlwr instance);
partial void InsertMlwr(Mlwr instance);