增加 int.Parse Guid.Parse 系列转换、Guid.NewGuid、new Random.NextDouble 等表达式函数解析

This commit is contained in:
28810
2019-03-18 12:16:09 +08:00
parent e23ae9d7ac
commit 8372f96ab1
13 changed files with 537 additions and 70 deletions

View File

@@ -1,25 +1,31 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
namespace FreeSql.Tests.DataContext.SqlServer
{
public class SqlServerFixture : IDisposable
{
public SqlServerFixture()
{
namespace FreeSql.Tests.DataContext.SqlServer {
public class SqlServerFixture : IDisposable {
public SqlServerFixture() {
sqlServerLazy = new Lazy<IFreeSql>(() => new FreeSql.FreeSqlBuilder()
.UseConnectionString(FreeSql.DataType.SqlServer, "Data Source=.;Integrated Security=True;Initial Catalog=freesqlTest;Pooling=true;Max Pool Size=10")
//.UseConnectionString(FreeSql.DataType.SqlServer, "Data Source=(localdb)\\mssqllocaldb;Integrated Security=True;Initial Catalog=cms;Pooling=true;Max Pool Size=10")
.UseAutoSyncStructure(true)
.UseLazyLoading(true)
.UseMonitorCommand(
cmd => {
Trace.WriteLine(cmd.CommandText);
}, //监听SQL命令对象在执行前
(cmd, traceLog) => {
Console.WriteLine(traceLog);
}) //监听SQL命令对象在执行后
.Build());
// ... initialize data in the test database ...
}
public void Dispose()
{
public void Dispose() {
// ... clean up test data from the database ...
}