public static TestGeoDBDataContext GetTestGeoDBDataContext(bool objectTrackingEnabled) { TestGeoDBDataContext dc = new TestGeoDBDataContext(ConfigurationManager.ConnectionStrings["TestGeoDBConnectionString"].ConnectionString); dc.ObjectTrackingEnabled = objectTrackingEnabled; return(dc); }
/// <summary> /// Dohvaća SVA brojačka mjesta. /// </summary> /// <returns>Popis svih brojačkih mjesta.</returns> public static List <BrojackoMjesto> DohvatiGeoPodatke() { List <BrojackoMjesto> entities = null; using (TestGeoDBDataContext dc = DBHelper.GetTestGeoDBDataContext(false)) { entities = ( from r in dc.BrojackoMjestos orderby r.Naziv select r ).ToList <BrojackoMjesto>(); } return(entities); }
public static TestGeoDBDataContext GetTestGeoDBDataContext(bool objectTrackingEnabled) { TestGeoDBDataContext dc = new TestGeoDBDataContext(ConfigurationManager.ConnectionStrings["TestGeoDBConnectionString"].ConnectionString); dc.ObjectTrackingEnabled = objectTrackingEnabled; return dc; }