static public void Delete(System.Int32 identityKey, esSqlAccessType sqlAccessType)
        {
            var obj = new NamingTest2();

            obj.IdentityKey = identityKey;
            obj.AcceptChanges();
            obj.MarkAsDeleted();
            obj.Save(sqlAccessType);
        }
 public NamingTest2ProxyStub(NamingTest2 obj, bool dirtyColumnsOnly)
 {
     theEntity             = this.entity = obj;
     this.dirtyColumnsOnly = dirtyColumnsOnly;
 }
 public NamingTest2ProxyStub(NamingTest2 obj)
 {
     theEntity = this.entity = obj;
 }
        public void IdentityKeyPlusGuidNewid()
        {
            NamingTest2Collection namingTestColl = new NamingTest2Collection();
            NamingTest2 namingTest = new NamingTest2();

            switch (namingTestColl.es.Connection.ProviderSignature.DataProviderName)
            {
                case "EntitySpaces.SqlClientProvider":
                    string testGuid = "b3883c65-ff94-47c4-8b0c-76896bedd45a";
                    namingTest.GuidNewid = new Guid(testGuid);
                    namingTest.Save();
                    int tempKey = namingTest.IdentityKey.Value;

                    namingTest = new NamingTest2();
                    namingTest.LoadByPrimaryKey(tempKey);
                    Assert.AreEqual(testGuid, namingTest.str().GuidNewid);

                    namingTest.MarkAsDeleted();
                    namingTest.Save();
                    break;

                default:
                    Assert.Ignore("Sql Server only");
                    break;
            }
        }