public void Insert(string SFileName, string SFilePath, byte[] Data) { var item = new TblImgAndIcon(); item.SFileName = SFileName; item.SFilePath = SFilePath; item.Data = Data; item.Save(UserName); }
public void Update(int Id, string SFileName, string SFilePath, byte[] Data) { var item = new TblImgAndIcon(); item.MarkOld(); item.IsLoaded = true; item.Id = Id; item.SFileName = SFileName; item.SFilePath = SFilePath; item.Data = Data; item.Save(UserName); }