Beispiel #1
0
        public DataService()
        {
            m_store = new SqlCeDataStore("MyData.sdf");

            m_store.DeleteStore();

            if (!m_store.StoreExists)
            {
                m_store.CreateStore();
            }

            m_store.AddType <Customer>();
            m_store.AddType <ProductOrder>();
            m_store.AddType <ShipAddress>();
            m_store.AddType <State>();

            m_store.EnsureCompatibility();
        }