mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-30 14:32:50 +08:00
32 lines
743 B
C#
32 lines
743 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using FreeSql.Tests.QuestDb.QuestDbTestModel;
|
|
using Xunit;
|
|
|
|
namespace FreeSql.Tests.QuestDb
|
|
{
|
|
public class QuestDbDbFirstTest
|
|
{
|
|
[Fact]
|
|
public void Test_ExistsTable()
|
|
{
|
|
var existsTable = QuestDbTest.fsql.DbFirst.ExistsTable(nameof(QuestDb_Model_Test01));
|
|
}
|
|
|
|
[Fact]
|
|
public void Test_GetTablesByDatabase()
|
|
{
|
|
var tablesByDatabase = QuestDbTest.fsql.DbFirst.GetTablesByDatabase("");
|
|
tablesByDatabase.ForEach(d =>
|
|
{
|
|
Debug.WriteLine(d.Name);
|
|
});
|
|
}
|
|
|
|
}
|
|
}
|