コード例 #1
0
ファイル: CollectionAddress.cs プロジェクト: suizhikuo/KYCMS
 public void Add(M_CollectionAddress model)
 {
     SqlParameter[] commandParameters = new SqlParameter[] { new SqlParameter("@ColectionId", SqlDbType.Int, 4), new SqlParameter("@CollectionUrl", SqlDbType.NVarChar), new SqlParameter("@State", SqlDbType.Bit, 1) };
     commandParameters[0].Value = model.ColectionId;
     commandParameters[1].Value = model.CollectionUrl;
     commandParameters[2].Value = model.State;
     SqlHelper.ExecuteNonQuery(SqlHelper.ConnectionStringKy, CommandType.StoredProcedure, "Up_CollectionAddress_Add", commandParameters);
 }
コード例 #2
0
 public void Add(M_CollectionAddress model)
 {
     this.dal.Add(model);
 }