mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 增加 FreeSql.Provider.SqlServerForSystem 使用 System.Data.SqlClient.dll 兼容更多运行平台;#401 #398 #395 #392 #391
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user