Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
         }
     }
 }
Exemplo n.º 3
0
 public void Update(Model.Store.Category entity)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 public bool Insert(Model.Store.Category entity)
 {
     throw new NotImplementedException();
 }