private static CustomersDataSet CreateLoaded()
        {
            CustomersDataSet ds = new CustomersDataSet();

            Assembly currentAssembly = Assembly.GetExecutingAssembly();
            using (Stream dataStream = currentAssembly.GetManifestResourceStream("MVPWithCWABQuickStart.Contacts.Repository.CustomersData.xml"))
            {
                ds.ReadXml(dataStream);
            }
            return ds;
        }
Exemple #2
0
        private static CustomersDataSet CreateLoaded()
        {
            CustomersDataSet ds = new CustomersDataSet();

            Assembly currentAssembly = Assembly.GetExecutingAssembly();

            using (Stream dataStream = currentAssembly.GetManifestResourceStream("MVPWithCWABQuickStart.Contacts.Repository.CustomersData.xml"))
            {
                ds.ReadXml(dataStream);
            }
            return(ds);
        }