mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 增加 Oracle DbFirst 视图的支持;
This commit is contained in:
@ -33,6 +33,8 @@ namespace FreeSql.Tests.Oracle
|
||||
Assert.Equal(t1.Columns.Count, t2.Columns.Count);
|
||||
var t3 = fsql.DbFirst.GetTableByName("notexists_tb");
|
||||
Assert.Null(t3);
|
||||
|
||||
var t4 = fsql.DbFirst.GetTableByName("V_DTOS_DT");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
@ -1,5 +1,6 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
using FreeSql.Tests.DataContext.SqlServer;
|
||||
using Microsoft.Data.SqlClient;
|
||||
using NetTaste;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@ -47,7 +48,14 @@ namespace FreeSql.Tests.SqlServer
|
||||
[Fact]
|
||||
public void ExecuteNonQuery()
|
||||
{
|
||||
|
||||
var ps = new[]
|
||||
{
|
||||
new SqlParameter("@TableName", "tb1"),
|
||||
new SqlParameter("@FInterID", System.Data.SqlDbType.Int)
|
||||
};
|
||||
ps[1].Direction = System.Data.ParameterDirection.Output;
|
||||
g.sqlserver.Ado.ExecuteNonQuery(System.Data.CommandType.StoredProcedure, "dbo.GetICMaxNum", ps);
|
||||
Assert.Equal(100, ps[1].Value);
|
||||
}
|
||||
[Fact]
|
||||
public void ExecuteScalar()
|
||||
|
Reference in New Issue
Block a user