static public void Delete(System.UInt32 typeID, esSqlAccessType sqlAccessType) { var obj = new MySqlUnicodeTest(); obj.TypeID = typeID; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
public MySqlUnicodeTestProxyStub(MySqlUnicodeTest obj) { theEntity = this.entity = obj; }
public MySqlUnicodeTestProxyStub(MySqlUnicodeTest obj, bool dirtyColumnsOnly) { theEntity = this.entity = obj; this.dirtyColumnsOnly = dirtyColumnsOnly; }
public void MySQLUnicodeTest() { MySqlUnicodeTestCollection collection = new MySqlUnicodeTestCollection(); if (collection.es.Connection.ProviderMetadataKey == "esMySQL" && collection.es.Connection.SqlAccessType == EntitySpaces.Interfaces.esSqlAccessType.DynamicSQL) { try { uint uniKey; MySqlUnicodeTest uniTest = collection.AddNew(); uniTest.VarCharType = "Hello ££ World"; uniTest.TextType = "Hello ££ World"; collection.Save(); uniKey = uniTest.TypeID.Value; uniTest = new MySqlUnicodeTest(); uniTest.LoadByPrimaryKey(uniKey); Assert.AreEqual("££", uniTest.VarCharType.Substring(6, 2)); Assert.AreEqual(14, uniTest.VarCharType.Length); Assert.AreEqual("££", uniTest.TextType.Substring(6, 2)); Assert.AreEqual(14, uniTest.TextType.Length); // Clean up uniTest.MarkAsDeleted(); uniTest.Save(); } catch (Exception ex) { Assert.Fail(ex.ToString()); } } else { Assert.Ignore("MySQL Dynamic only"); } }