You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SimpleDb.NET doesn't require any configuration. To begin using it, just call SimpleDbContext.Create:
using(varsimpleDb=SimpleDbContext.Create("publicKey","privateKey")){// Create a DomainvarmyFirstDomain=simpleDb.Domains.Add("MyFirstDomain");// Add some items to our domainmyFirstDomain.Items.Add("MyFirstItem",newDictionary<string,SimpleDbAttributeValue>{{"ProductName","Cheese"},{"Price",3.45}});myFirstDomain.Items.Add("MySecondItem",newDictionary<string,SimpleDbAttributeValue>{{"ProductName","Crackers"},{"Price",1.99}});// Call Submit so our new items actually get sent and saved to AWSsimpleDb.SubmitChanges();// Query our domain for items with a price higher than 2varexpensiveItems=fromiteminsimpleDb.Domains["MyFirstDomain"].Itemswhereitem["Price"]>2
orderby item =>item["Price"] descending
selectitem;// Delete everything to clean upmyFirstDomain.Delete();}
Check out the Technical Docs to get a complete API reference.