Exemplo n.º 1
0
		private void MembersFirst(string name)
		{
			CascadeDeleteDeleted cdd = new CascadeDeleteDeleted(name);
			cdd.untypedMember = new CascadeDeleteDeleted.CddMember();
			cdd.typedMember = new CascadeDeleteDeleted.CddMember();
			Db().Store(cdd);
		}
Exemplo n.º 2
0
 private void MembersFirst(string name)
 {
     var cdd = new CascadeDeleteDeleted(name);
     cdd.untypedMember = new CddMember();
     cdd.typedMember = new CddMember();
     Db().Store(cdd);
 }
        private void TTwoRef(string name)
        {
            bool   commit = name.IndexOf("commit") > 1;
            bool   delete = name.IndexOf("delete") > 1;
            IQuery q      = NewQuery(this.GetType());

            q.Descend("name").Constrain(name);
            IObjectSet           objectSet = q.Execute();
            CascadeDeleteDeleted cdd       = (CascadeDeleteDeleted)objectSet.Next();
            CascadeDeleteDeleted cdd2      = (CascadeDeleteDeleted)objectSet.Next();

            if (delete)
            {
                Db().Delete(cdd.untypedMember);
                Db().Delete(cdd.typedMember);
            }
            Db().Delete(cdd);
            if (commit)
            {
                Db().Commit();
            }
            Db().Delete(cdd2);
            if (!commit)
            {
                Db().Commit();
            }
        }
Exemplo n.º 4
0
		private void TwoRef(string name)
		{
			CascadeDeleteDeleted cdd = new CascadeDeleteDeleted(name);
			cdd.untypedMember = new CascadeDeleteDeleted.CddMember();
			cdd.typedMember = new CascadeDeleteDeleted.CddMember();
			CascadeDeleteDeleted cdd2 = new CascadeDeleteDeleted(name);
			cdd2.untypedMember = cdd.untypedMember;
			cdd2.typedMember = cdd.typedMember;
			Db().Store(cdd);
			Db().Store(cdd2);
		}
Exemplo n.º 5
0
 private void TwoRef(string name)
 {
     var cdd = new CascadeDeleteDeleted(name);
     cdd.untypedMember = new CddMember();
     cdd.typedMember = new CddMember();
     var cdd2 = new CascadeDeleteDeleted(name);
     cdd2.untypedMember = cdd.untypedMember;
     cdd2.typedMember = cdd.typedMember;
     Db().Store(cdd);
     Db().Store(cdd2);
 }