示例#1
0
        public static TestGeoDBDataContext GetTestGeoDBDataContext(bool objectTrackingEnabled)
        {
            TestGeoDBDataContext dc = new TestGeoDBDataContext(ConfigurationManager.ConnectionStrings["TestGeoDBConnectionString"].ConnectionString);

            dc.ObjectTrackingEnabled = objectTrackingEnabled;
            return(dc);
        }
示例#2
0
        /// <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);
        }
示例#3
0
 public static TestGeoDBDataContext GetTestGeoDBDataContext(bool objectTrackingEnabled)
 {
     TestGeoDBDataContext dc = new TestGeoDBDataContext(ConfigurationManager.ConnectionStrings["TestGeoDBConnectionString"].ConnectionString);
     dc.ObjectTrackingEnabled = objectTrackingEnabled;
     return dc;
 }