public void AddRecord( DateTime purchaseDate, string country, string state, string city, string zip, string purchaseLocation, string purchaseType, string readerName, string readerUrl, string feedback) { ProAzureReader pa = new ProAzureReader(city); pa.Country = country; pa.Feedback = feedback; pa.PurchaseDate = purchaseDate; pa.PurchaseLocation = purchaseLocation; pa.PurchaseType = purchaseType; pa.ReaderName = readerName; pa.ReaderUrl = readerUrl; pa.State = state; pa.Zip = zip; this.AddObject("ProAzureReader", pa); this.SaveChanges(); }
public void AddProAzureReader(ProAzureReader newItem) { dContext.AddObject(ENTITY_SET_NAME, newItem); dContext.SaveChangesWithRetries(SaveChangesOptions.None); }