Exemple #1
0
 /// <summary>
 /// 删除模型
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public virtual bool Delete(Model.Model model)
 {
     Check.IsNull(model);
     string sql = SqlProviders.Current.BuildDeleteSQL(model);
     IDataParameter[] parameters = DataAccessProvider.Current.GetParameters(model);
     return DataAccessProvider.Current.Execute(sql, parameters) > 0;
 }