internal SessionSimpleDbItem(IInternalContext context, ISimpleDbDomain domain, string name, XElement data, bool complete) { _domain = domain; _context = context; _data = data; try { _name = name; _attributes = new SessionSimpleDbAttributeCollection(_context, this, _data, complete); } catch (Exception ex) { throw new SimpleDbException("The response from SimpleDB was not valid", ex); } _context.Session.Attach(this); }
public static DomainExpression Domain(ISimpleDbDomain domain) { return new DomainExpression(domain); }
internal SessionNewSimpleDbItem(IInternalContext context, ISimpleDbDomain domain, string name, Dictionary<string, SimpleDbAttributeValue> values) : base(context, domain, name, ToXElement(values), true) { context.Session.Attach (this); }
public DomainExpression(ISimpleDbDomain domain) { _domain = domain; }
internal SessionSimpleDbItem(IInternalContext context, ISimpleDbDomain domain, XElement data, bool complete) : this(context, domain, data.Element(sdbNs + "Name").Value, data, complete) { }