public virtual IEnumerable <EntityEnterprise> GetEnterprisesByFilter(EntityEnterprise pEnterprise) { using (var connection = SchemaDB.Database.GetDbConnection()) { return(connection.Query <EntityEnterprise>("stp_GER_GetEntityEnterpriseByFilter", new { pDesignation = pEnterprise.Designation }, commandType: CommandType.StoredProcedure)); } }
public virtual EntityEnterprise GetEnterpriseByID(EntityEnterprise pEnterprise) { using (var connection = SchemaDB.Database.GetDbConnection()) { return(connection.Query <EntityEnterprise>("stp_GER_GetEntityEnterpriseByID", new { pEntityID = pEnterprise.ID }, commandType: CommandType.StoredProcedure).FirstOrDefault()); } }
public void UpdateEnterprise(EntityEnterprise pEnterprise) { SchemaDB.EntityEnterprise.Update(pEnterprise); SchemaDB.SaveChanges(); }
public void AddEnterprise(EntityEnterprise pEnterprise) { SchemaDB.EntityEnterprise.Add(pEnterprise); SchemaDB.SaveChanges(); }
public HealtInsurancePlan() { InsuranceCompany = new EntityEnterprise(); PatientInsurancePolicyList = new HashSet <PatientInsurancePolicy>(); HealtInsurancePlanCoverageList = new HashSet <HealtInsurancePlanCoverage>(); }
public BankEntities() { BankAccounts = new HashSet <BankAccounts>(); Enterprise = new EntityEnterprise(); }