コード例 #1
0
 public void Remove(Model.SubSupplier entity)
 {
     if (entity == null)
     {
         throw new ArgumentNullException("entity");
     }
 }
コード例 #2
0
 public void Update(Model.SubSupplier entity)
 {
     if (entity == null)
     {
         throw new ArgumentNullException("entity");
     }
     //string update = string.Format(@"update  SubSupplier set SubSupplierCode= @SubSupplierCode,SubSupplierName= @SubSupplierName,SupplierId= @SupplierId,Address= @Address,Phone= @Phone,Birthday= @Birthday,Fax= @Fax,Skype= @Skype,Email= @Email,Note= @Note,StaffId= @StaffId,UserId= @UserId,CreateDate= @CreateDate,CreateBy= @CreateBy,ModifyDate= @ModifyDate,ModifyBy= @ModifyBy,IsActive= @IsActive,IsMain= @IsMain,Sex= @Sex  where  SubSupplierId = @SubSupplierId  ");
     //Connection.Execute(update, entity, transaction: Transaction);
     base.Edit(entity);
 }
コード例 #3
0
 public void Add(Model.SubSupplier entity)
 {
     if (entity == null)
     {
         throw new ArgumentNullException("entity");
     }
     //string insert = string.Format(@"insert into SubSupplier(SubSupplierCode,SubSupplierName,SupplierId,Address,Phone,Birthday,Fax,Skype,Email,Note,StaffId,UserId,CreateDate,CreateBy,ModifyDate,ModifyBy,IsActive,IsMain,Sex) values (@SubSupplierCode,@SubSupplierName,@SupplierId,@Address,@Phone,@Birthday,@Fax,@Skype,@Email,@Note,@StaffId,@UserId,@CreateDate,@CreateBy,@ModifyDate,@ModifyBy,@IsActive,@IsMain,@Sex)");
     //Connection.Execute(insert, entity, Transaction);
     base.Insert(entity);
 }