sqlsugar/Src/Asp.Net/SqlSugar/Interface/ICodeFirst.cs

31 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SqlSugar
{
public partial interface ICodeFirst
{
SqlSugarProvider Context { get; set; }
ICodeFirst BackupTable(int maxBackupDataRows = int.MaxValue);
ICodeFirst SetStringDefaultLength(int length);
ICodeFirst As(Type type,string newTableName);
ICodeFirst As<T>(string newTableName);
void InitTables(string entitiesNamespace);
void InitTables(string[] entitiesNamespaces);
void InitTables(params Type[] entityTypes);
void InitTablesWithAttr(params Type[] entityTypes);
void InitTables(Type entityType);
void InitTables<T>();
void InitTables<T, T2>();
void InitTables<T, T2, T3>();
void InitTables<T, T2, T3, T4>();
void InitTables<T, T2, T3, T4,T5>();
SplitCodeFirstProvider SplitTables();
TableDifferenceProvider GetDifferenceTables<T>();
TableDifferenceProvider GetDifferenceTables(params Type[] types);
}
}