using (var db = new AppsDb()) { //get the corresponding name in Division. division = (from obs in db.BibleMaster.AsNoTracking() select new CommonCustomLookUp { DisplayText = obs.Division}).ToList(); }
Division
null
obs.Division
using (var db = new AppsDb()) { //get the corresponding name in Division. var data = from obs in db.BibleMaster.AsNoTracking() select new CommonCustomLookUp { DisplayText = obs.Division}; if(data!=null) division = data.ToList(); }
using (var db = new AppsDb()) { //get the corresponding name in Division. var data = from obs in db.BibleMaster.AsNoTracking() select new CommonCustomLookUp { DisplayText = obs.Division}; //Considering Division is of type String. if(!String.IsNullOrEmpty(data)) division = data.ToList(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)