コード例 #1
0
 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);
 }
コード例 #2
0
 public static DomainExpression Domain(ISimpleDbDomain domain)
 {
     return new DomainExpression(domain);
 }
コード例 #3
0
 internal SessionNewSimpleDbItem(IInternalContext context, ISimpleDbDomain domain, string name, Dictionary<string, SimpleDbAttributeValue> values)
     : base(context, domain, name, ToXElement(values), true)
 {
     context.Session.Attach (this);
 }
コード例 #4
0
ファイル: DomainExpression.cs プロジェクト: rexm/SimpleDb.Net
 public DomainExpression(ISimpleDbDomain domain)
 {
     _domain = domain;
 }
コード例 #5
0
 internal SessionSimpleDbItem(IInternalContext context, ISimpleDbDomain domain, XElement data, bool complete)
     : this(context, domain, data.Element(sdbNs + "Name").Value, data, complete)
 {
 }