This commit is contained in:
sunkaixuan
2017-05-17 00:55:52 +08:00
parent 16195abde6
commit 951838a609
12 changed files with 36 additions and 17 deletions

View File

@@ -125,7 +125,7 @@ namespace SqlSugar
}
}
}
public void Init()
internal void Init()
{
this.InsertBuilder.TableName = EntityInfo.Name;
if (IsMappingTable)

View File

@@ -20,7 +20,12 @@ namespace SqlSugar
throw new NotImplementedException();
}
public IInsertable<T> IgnoreColumns(Expression<Func<T, object[]>> columns)
public IInsertable<T> IgnoreColumns(Expression<Func<T, object>> columns)
{
throw new NotImplementedException();
}
public IInsertable<T> UpdateColumns(Expression<Func<T, object>> columns)
{
throw new NotImplementedException();
}
@@ -30,11 +35,6 @@ namespace SqlSugar
throw new NotImplementedException();
}
public IInsertable<T> UpdateColumns(Expression<Func<T, object[]>> columns)
{
throw new NotImplementedException();
}
public IInsertable<T> UpdateRange(List<T> InsertObjs)
{
throw new NotImplementedException();
@@ -50,6 +50,11 @@ namespace SqlSugar
throw new NotImplementedException();
}
public object ToSql()
{
throw new NotImplementedException();
}
internal void Init()
{
throw new NotImplementedException();

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SqlSugar
{
public class SqlServerDeleteBuilder<T>:DeleteableProvider<T> where T:class,new()
{
}
}

View File

@@ -7,9 +7,9 @@ using System.Text;
using System.Threading.Tasks;
namespace SqlSugar
{
public class SqlServerDb : DbProvider
public class SqlServerProvider : DbProvider
{
public SqlServerDb() {}
public SqlServerProvider() {}
public override IDbConnection Connection
{
get

View File

@@ -57,7 +57,8 @@
<Compile Include="Abstract\InsertableProvider\InsertableProvider.cs" />
<Compile Include="Abstract\DeleteProvider\DeleteableProvider.cs" />
<Compile Include="Abstract\UpdateProvider\UpdateableProvider.cs" />
<Compile Include="Databases\SqlServer\Db\SqlBuilder\SqlServerInsertBuilder.cs" />
<Compile Include="Databases\SqlServer\Core\SqlBuilder\SqlServerDeleteBuilder.cs" />
<Compile Include="Databases\SqlServer\Core\SqlBuilder\SqlServerInsertBuilder.cs" />
<Compile Include="Entities\EntityColumnInfo.cs" />
<Compile Include="Entities\EntityInfo.cs" />
<Compile Include="Entities\Mapping\SugarMappingAttribute.cs" />
@@ -84,12 +85,12 @@
<Compile Include="Common\RewritableMethods.cs" />
<Compile Include="Databases\SqlServer\CodeFirst\SqlServerCodeFirst.cs" />
<Compile Include="Databases\SqlServer\DbType.cs" />
<Compile Include="Databases\SqlServer\Db\DbBind\SqlServerDbBind.cs" />
<Compile Include="Databases\SqlServer\Db\DbFirst\SqlServerDbFirst.cs" />
<Compile Include="Databases\SqlServer\Db\SqlBuilder\SqlServerBuilder.cs" />
<Compile Include="Databases\SqlServer\Db\SqlBuilder\SqlServerDbMaintenance.cs" />
<Compile Include="Databases\SqlServer\Db\SqlBuilder\SqlServerQueryBuilder.cs" />
<Compile Include="Databases\SqlServer\Db\SqlServerDb.cs" />
<Compile Include="Databases\SqlServer\Core\DbBind\SqlServerDbBind.cs" />
<Compile Include="Databases\SqlServer\DbFirst\SqlServerDbFirst.cs" />
<Compile Include="Databases\SqlServer\Core\SqlBuilder\SqlServerBuilder.cs" />
<Compile Include="Databases\SqlServer\Core\SqlBuilder\SqlServerDbMaintenance.cs" />
<Compile Include="Databases\SqlServer\Core\SqlBuilder\SqlServerQueryBuilder.cs" />
<Compile Include="Databases\SqlServer\Core\SqlServerProvider.cs" />
<Compile Include="Databases\SqlServer\Queryable\SqlServerQueryable.cs" />
<Compile Include="Entities\DetaultT.cs" />
<Compile Include="Entities\ConnectionConfig.cs" />
@@ -101,7 +102,7 @@
<Compile Include="ExpressionsToSql\Common\DateType.cs" />
<Compile Include="ExpressionsToSql\Common\MethodCallExpressionModel.cs" />
<Compile Include="ExpressionsToSql\Method\DefaultDbMethod.cs" />
<Compile Include="Databases\SqlServer\Db\SqlBuilder\SqlServerExpressionContext.cs" />
<Compile Include="Databases\SqlServer\Core\SqlBuilder\SqlServerExpressionContext.cs" />
<Compile Include="ExpressionsToSql\Method\NBORM.cs" />
<Compile Include="ExpressionsToSql\Common\BinaryExpressionInfo.cs" />
<Compile Include="ExpressionsToSql\Common\ExpressionResult.cs" />