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; }
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); }