コード例 #1
0
        public List <CategoryMasterVM> GetEntityList()
        {
            var result      = dB_SPADevelopementEntities.Categories.Where(item => item.IsActive == 1).ToList();
            var destination = new ConvertListSourceToDestination <Category, CategoryMasterVM>().ConvertSourceToDestination(result);

            return(destination);
        }
コード例 #2
0
        public IEnumerable <CasteMasterVM> GetEntities()
        {
            var result      = dB_SPADevelopementEntities.CasteMasters.Where(item => item.IsActive == 1).ToList();
            var destination = new ConvertListSourceToDestination <CasteMaster, CasteMasterVM>().ConvertSourceToDestination(result);

            return(destination);
        }
コード例 #3
0
        public List <ClassMasterVm> GetEntityList()
        {
            var result           = dB_SPADevelopementEntities.Classes.Where(item => item.IsActive == 1).ToList();
            var destionationList = new ConvertListSourceToDestination <Core.Class, ClassMasterVm>().ConvertSourceToDestination(result);

            return(destionationList);
        }
コード例 #4
0
 public List <GenderMasterVM> GetEntityList()
 {
     using (dB_SPADevelopementEntities)
     {
         var result      = dB_SPADevelopementEntities.GenderMasters.Where(item => item.IsActive == 1).ToList();
         var destination = new ConvertListSourceToDestination <GenderMaster, GenderMasterVM>().ConvertSourceToDestination(result);
         return(destination);
     }
 }
コード例 #5
0
 public IEnumerable <BloodGroupVM> GetEntities()
 {
     using (dB_SPADevelopementEntities)
     {
         var result      = dB_SPADevelopementEntities.BloodGroups.Where(x => x.IsActive == 1).ToList();
         var destination = new  ConvertListSourceToDestination <BloodGroup, BloodGroupVM>().ConvertSourceToDestination(result);
         return(destination);
     }
 }