mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
编译错误,命名空间补全
This commit is contained in:
parent
2737175196
commit
9181290c02
@ -24,7 +24,7 @@ namespace FreeSql.Tests
|
|||||||
{
|
{
|
||||||
public static T TryTo<T>(this string that)
|
public static T TryTo<T>(this string that)
|
||||||
{
|
{
|
||||||
return (T)Internal.Utils.GetDataReaderValue(typeof(T), that);
|
return (T)FreeSql.Internal.Utils.GetDataReaderValue(typeof(T), that);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string FormatDateTime()
|
public static string FormatDateTime()
|
||||||
@ -464,7 +464,8 @@ namespace FreeSql.Tests
|
|||||||
emoji = g.sqlserver.Select<TestGuidId>().Where(a => a.Id == testemoji.Id).First();
|
emoji = g.sqlserver.Select<TestGuidId>().Where(a => a.Id == testemoji.Id).First();
|
||||||
Assert.Equal("💐🌸💮🌹🌺🌻🌼🌷🌱🌿🍀", emoji.xxx);
|
Assert.Equal("💐🌸💮🌹🌺🌻🌼🌷🌱🌿🍀", emoji.xxx);
|
||||||
|
|
||||||
var _model = new TestUpdateModel {
|
var _model = new TestUpdateModel
|
||||||
|
{
|
||||||
F_EmpId = "xx11",
|
F_EmpId = "xx11",
|
||||||
F_RoleType = TestUpdateModelEnum.x2,
|
F_RoleType = TestUpdateModelEnum.x2,
|
||||||
F_UseType = TestUpdateModelEnum.x3
|
F_UseType = TestUpdateModelEnum.x3
|
||||||
@ -600,7 +601,7 @@ namespace FreeSql.Tests
|
|||||||
|
|
||||||
IFreeSql fsql = new FreeSql.FreeSqlBuilder()
|
IFreeSql fsql = new FreeSql.FreeSqlBuilder()
|
||||||
.UseConnectionString(FreeSql.DataType.PostgreSQL, "Host=192.168.164.10;Port=5432;Username=postgres;Password=123456;Database=tedb;Pooling=true;Maximum Pool Size=7")
|
.UseConnectionString(FreeSql.DataType.PostgreSQL, "Host=192.168.164.10;Port=5432;Username=postgres;Password=123456;Database=tedb;Pooling=true;Maximum Pool Size=7")
|
||||||
.UseNameConvert(Internal.NameConvertType.PascalCaseToUnderscoreWithLower)
|
.UseNameConvert(FreeSql.Internal.NameConvertType.PascalCaseToUnderscoreWithLower)
|
||||||
.UseNoneCommandParameter(true)
|
.UseNoneCommandParameter(true)
|
||||||
.UseAutoSyncStructure(true) //自动同步实体结构到数据库
|
.UseAutoSyncStructure(true) //自动同步实体结构到数据库
|
||||||
.UseMonitorCommand(a => Trace.WriteLine(a.CommandText))
|
.UseMonitorCommand(a => Trace.WriteLine(a.CommandText))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user