コード例 #1
0
 /// <summary>
 /// this method delete a CustomerFollowupAction
 /// </summary>
 /// <param name="customerFollowupAction"></param>
 public void DeleteCustomerFollowUpAction(CustomerFollowupAction entity)
 {
     //DbContext.CustomerFollowupActions.Attach(entity);
     DbContext.CustomerFollowupActions.DeleteOnSubmit(entity);
     DbContext.SubmitChanges();
 }
コード例 #2
0
 /// <summary>
 /// this method update a CustomerFollowupAction
 /// </summary>
 /// <param name="original_entity"></param>
 /// <param name="entity"></param>
 public void UpdateCustomerFollowupAction(CustomerFollowupAction original_entity, CustomerFollowupAction entity)
 {
     DbContext.CustomerFollowupActions.Attach(original_entity);
     original_entity.CopyPropertiesFrom(entity);
     DbContext.SubmitChanges();
 }
コード例 #3
0
 /// <summary>
 /// this method insert a new CustomerFollowupAction
 /// </summary>
 /// <param name="customerFollowupAction"></param>
 public void InsertCustomerFollowupAction(CustomerFollowupAction entity)
 {
     DbContext.CustomerFollowupActions.InsertOnSubmit(entity);
     DbContext.SubmitChanges();
 }