public void Update(Model.Store.Category entity) { using (IDbConnection conn = SqlString.GetSQLiteConnection()) { conn.Execute("UPDATE store_category SET GroupCode=@GroupCode,CategoryName=@CategoryName WHERE Category_Id =@Category_Id", entity); } }
public bool Insert(Model.Store.Category entity) { using (IDbConnection conn = SqlString.GetSQLiteConnection()) { int i = conn.Execute("INSERT INTO store_category(GroupCode,CategoryName)" + "VALUES(@GroupCode,@CategoryName)", entity); if (i > 0) { return(true); } else { return(false); } } }
public void Update(Model.Store.Category entity) { throw new NotImplementedException(); }
public bool Insert(Model.Store.Category entity) { throw new NotImplementedException(); }