public void TestInitialize() { string conn = "Database=agile_config_test;Data Source=localhost;User Id=root;Password=dev@123;port=3306"; fsq = new FreeSqlBuilder() .UseConnectionString(FreeSql.DataType.MySql, conn) .UseAutoSyncStructure(true) .Build(); freeSqlContext = new FreeSqlContext(fsq); service = new ModifyLogService(freeSqlContext); fsq.Delete <ModifyLog>().Where("1=1"); Console.WriteLine("TestInitialize"); }
public void TestInitialize() { string conn = "Data Source=agile_config.db"; fsq = new FreeSqlBuilder() .UseConnectionString(FreeSql.DataType.Sqlite, conn) .UseAutoSyncStructure(true) .Build(); freeSqlContext = new FreeSqlContext(fsq); service = new ModifyLogService(freeSqlContext); fsq.Delete <ModifyLog>().Where("1=1"); Console.WriteLine("TestInitialize"); }
public void TestInitialize() { string conn = "user id=CLINIC;password=CLINIC;data source=192.168.0.91/orcl"; fsq = new FreeSqlBuilder() .UseConnectionString(FreeSql.DataType.Oracle, conn) .UseAutoSyncStructure(true) .Build(); FluentApi.Config(fsq); freeSqlContext = new FreeSqlContext(fsq); service = new ModifyLogService(freeSqlContext); fsq.Delete <ModifyLog>().Where("1=1"); Console.WriteLine("TestInitialize"); }
public void TestInitialize() { string conn = "Host=127.0.0.1;Database=agile_config;Username=postgres;Password=dev@123"; fsq = new FreeSqlBuilder() .UseConnectionString(FreeSql.DataType.PostgreSQL, conn) .UseAutoSyncStructure(true) .Build(); FluentApi.Config(fsq); freeSqlContext = new FreeSqlContext(fsq); service = new ModifyLogService(freeSqlContext); fsq.Delete <ModifyLog>().Where("1=1"); Console.WriteLine("TestInitialize"); }
public void TestInitialize() { string conn = "Persist Security Info = False; User ID =dev; Password =dev@123,; Initial Catalog =agile_config_test; Server =www..com"; fsq = new FreeSqlBuilder() .UseConnectionString(FreeSql.DataType.SqlServer, conn) .UseAutoSyncStructure(true) .Build(); FluentApi.Config(fsq); freeSqlContext = new FreeSqlContext(fsq); service = new ModifyLogService(freeSqlContext); fsq.Delete <ModifyLog>().Where("1=1"); Console.WriteLine("TestInitialize"); }