- 增加 FreeSql.Provider.SqlServerForSystem 使用 System.Data.SqlClient.dll 兼容更多运行平台;#401 #398 #395 #392 #391

This commit is contained in:
28810
2020-08-03 11:29:17 +08:00
parent 51c6a733bc
commit 78c5433a09
5 changed files with 67 additions and 5 deletions

View File

@ -1,6 +1,8 @@
using FreeSql.DataAnnotations;
using FreeSql.Tests.DataContext.SqlServer;
using NetTaste;
using System;
using System.Collections.Generic;
using Xunit;
namespace FreeSql.Tests.SqlServer
@ -78,8 +80,8 @@ namespace FreeSql.Tests.SqlServer
var t4 = g.sqlserver.Ado.Query<(int, int, string, string DateTime)>("select * from xxx");
var t5 = g.sqlserver.Ado.Query<dynamic>(System.Data.CommandType.Text, "select * from xxx where Id = @Id",
new Microsoft.Data.SqlClient.SqlParameter("Id", 1));
var t5 = g.sqlserver.Ado.Query<dynamic>("select * from xxx where Id = @Id",
new Dictionary<string, object> { ["id"] = 1 });
}
[Fact]