コード例 #1
0
 public override void Delete(AttributeData entity)
 {
     Log.Info("Accessing AttributeRepo Delete function");
     using (entity_context)
     {
         entity_context.ExecuteProcedureNonQuery("usp_attribute_del", Mapper.MapParamsForDelete(entity));
     }
 }
コード例 #2
0
 public override void Delete(OrderItemData entity)
 {
     Log.Info("Accessing OrderItemRepo Delete function");
     using (entity_context)
     {
         entity_context.ExecuteProcedureNonQuery("usp_order_item_del", Mapper.MapParamsForDelete(entity));
     }
 }
 public override void Delete(FeeScheduleData entity)
 {
     Log.Info("Accessing FeeScheduleRepo Delete function");
     using (entity_context)
     {
         entity_context.ExecuteProcedureNonQuery("usp_fee_schedule_del", Mapper.MapParamsForDelete(entity));
     }
 }
コード例 #4
0
 public override void Delete(EntityProductData entity)
 {
     Log.Info("Accessing EntityProductRepo Delete function");
     using (entity_context)
     {
         entity_context.ExecuteProcedureNonQuery("usp_entity_product_del", Mapper.MapParamsForDelete(entity));
     }
 }
 public override void Delete(LedgerTxnData entity)
 {
     Log.Info("Accessing LedgerTxnRepo Delete function");
     using (entity_context)
     {
         entity_context.ExecuteProcedureNonQuery("usp_ledger_txn_del", Mapper.MapParamsForDelete(entity));
     }
 }
コード例 #6
0
 public override void Delete(ChartOfAccountsData entity)
 {
     Log.Info("Accessing ChartOfAccountsRepo Delete function");
     using (entity_context)
     {
         entity_context.ExecuteProcedureNonQuery("usp_chart_of_accounts_del", Mapper.MapParamsForDelete(entity));
     }
 }
コード例 #7
0
 public override void Delete(UserSessionData entity)
 {
     Log.Info("Accessing UserSessionRepo Delete function");
     using (entity_context)
     {
         entity_context.ExecuteProcedureNonQuery("usp_user_session_del", Mapper.MapParamsForDelete(entity));
     }
 }
 public override void Delete(InvoiceStatusData entity)
 {
     Log.Info("Accessing InvoiceStatusRepo Delete function");
     using (entity_context)
     {
         entity_context.ExecuteProcedureNonQuery("usp_invoice_status_del", Mapper.MapParamsForDelete(entity));
     }
 }
コード例 #9
0
 private int Upsert(AuditLogData entity)
 {
     using (entity_context)
     {
         return(entity_context.ExecuteProcedureNonQuery("usp_audit_log_ups", Mapper.MapParamsForUpsert(entity)));
     }
 }
        public int SavePersonSupervisor(int person_key, int entity_key, int entity_type_key)
        {
            Log.Info("Accessing EntityPersonRepo SavePersonSupervisor function");
            var pcol = new List <SqlParameter>()
            {
                Mapper.BuildParam("@person_key", person_key),
                Mapper.BuildParam("@entity_key", entity_key),
                Mapper.BuildParam("@entity_type_key", entity_type_key),
                new SqlParameter("@key", SqlDbType.Int, 4, ParameterDirection.Output, false, 0, 18, "", DataRowVersion.Current, null)
            };

            using (entity_context)
            {
                return(entity_context.ExecuteProcedureNonQuery("usp_entity_person_ups_emp_rel", pcol));
            }
        }