protected static string test04() { AltairStudios.Core.ConsoleTests.Models.TestModel test = new AltairStudios.Core.ConsoleTests.Models.TestModel(); test.Name = "testname"; test.PasswordMd5 = "password"; test.PasswordSha1 = "password"; test.IntList = new AltairStudios.Core.Orm.ModelList<int>(); test.IntList.Add(1); test.IntList.Add(2); test.UserList = new AltairStudios.Core.Orm.ModelList<AltairStudios.Core.Orm.Models.User>(); AltairStudios.Core.Orm.Models.User user = new AltairStudios.Core.Orm.Models.User(); user.Email = "*****@*****.**"; user.Name = "test"; user.Surname = "surtest"; test.UserList.Add(user); test.Address = new AltairStudios.Core.Orm.Models.Address(); test.Address.Street = "Sesame street"; return AltairStudios.Core.Orm.Providers.SqlProvider.getProvider("MySql.Data.MySqlClient").sqlInsert(test.GetType()); }
protected static string test03() { AltairStudios.Core.ConsoleTests.Models.TestModel test = new AltairStudios.Core.ConsoleTests.Models.TestModel(); test.Name = "testname"; test.PasswordMd5 = "password"; test.PasswordSha1 = "password"; test.IntList = new AltairStudios.Core.Orm.ModelList<int>(); test.IntList.Add(1); test.IntList.Add(2); return AltairStudios.Core.Orm.Providers.SqlProvider.getProvider("MySql.Data.MySqlClient").sqlInsert(test.GetType()); }