public virtual void SaveLog(string opertion) { Byte[] asa = new Byte[1]; asa[0] = Byte.Parse("123"); var repo = RepositoryContext.GetRepository(); LogClass logClass = new LogClass(); logClass.Operating = opertion; logClass.ByteImage = asa; repo.Add(logClass); repo.SaveChanges(); }
public void LogClassAddTest() { LogClass logClass = new LogClass(); logClass.SaveLog("Add"); }