//xFamilyValue/Get/1
        public IEnumerable <XFamilyValues> Get(int familyValueId)
        {
            var lMDBContext = new LoveMarriageDBContext();

            return(lMDBContext.XFamilyValues.Where(x => x.FamilyValueId == familyValueId));
        }
 public XBloodGroupRepository(LoveMarriageDBContext context)
     : base(context)
 {
 }
        //xFamilyValue/Get
        public IEnumerable <XFamilyValues> Get()
        {
            var lMDBContext = new LoveMarriageDBContext();

            return(lMDBContext.XFamilyValues.ToList());
        }
Ejemplo n.º 4
0
 public UnitOfWork(LoveMarriageDBContext context)
 {
     _context = context;
     //inject context to all the repositories bellow
     XBloodGroup = new XBloodGroupRepository(_context);
 }