Example #1
0
        /// <summary>
        /// Public Constructor,initializes privately declared local variables.
        /// </summary>
        /// <param name="context"></param>
        public PricatsEmpresaCustomRepository()
        {
            this.ContextTrazabilidad = new CABASNET_TRAZABILIDADEntities();
            this.DbSetTrazabilidad   = ContextTrazabilidad.Set <PRICATS_X_EMPRESA>();

            this.ContextPPAL = new CABASNET_PPAL_CO_V1_0Entities();
            this.DbSetPPAL   = ContextPPAL.Set <EMPRESA>();
        }
 /// <summary>
 /// Public Constructor,initializes privately declared local variables.
 /// </summary>
 /// <param name="context"></param>
 public GenericRepositoryPpal(CABASNET_PPAL_CO_V1_0Entities contextPpal)
 {
     this.ContextPpal = contextPpal;
     this.DbSetPpal   = contextPpal.Set <TEntity>();
 }