/// <summary> /// gets a service definition /// </summary> public new GeoServiceList Services(string code) { var db = ApplicationContext.Current.DatabaseContext.Database; var sql = new Sql().Where<GeoService>(x => x.service_code == code); var s = db.Query<GeoService>(sql); var serviceList = new GeoServiceList(); serviceList.AddRange(s); return serviceList; }
/// <summary> /// gets all the services... /// </summary> public new GeoServiceList Services() { var db = ApplicationContext.Current.DatabaseContext.Database; var sql = new Sql().Select("*").From(); var s = db.Query<GeoService>(sql); var serviceList = new GeoServiceList(); serviceList.AddRange(s); return serviceList; }