10
10
using System . Text ;
11
11
using T = System . Collections . Generic . Dictionary < string , object > ;
12
12
13
- namespace FreeSql . Extensions . ZoreEntity
13
+ namespace FreeSql . Extensions . ZeroEntity
14
14
{
15
- partial class ZoreDbContext
15
+ partial class ZeroDbContext
16
16
{
17
17
public class SelectImpl
18
18
{
19
- ZoreDbContext _dbcontext ;
19
+ ZeroDbContext _dbcontext ;
20
20
IFreeSql _orm => _dbcontext . _orm ;
21
- List < ZoreTableInfo > _tables => _dbcontext . _tables ;
21
+ List < ZeroTableInfo > _tables => _dbcontext . _tables ;
22
22
int _mainTableIndex = - 1 ;
23
23
List < TableAliasInfo > _tableAlias ;
24
24
ISelect < TestDynamicFilterInfo > _select ;
@@ -33,7 +33,7 @@ public class SelectImpl
33
33
bool _includeAll = false ;
34
34
35
35
SelectImpl ( ) { }
36
- internal SelectImpl ( ZoreDbContext dbcontext , string tableName )
36
+ internal SelectImpl ( ZeroDbContext dbcontext , string tableName )
37
37
{
38
38
_dbcontext = dbcontext ;
39
39
var tableIndex = _tables . FindIndex ( a => a . CsName . ToLower ( ) == tableName ? . ToLower ( ) ) ;
@@ -61,7 +61,7 @@ public SelectImpl IncludeAll()
61
61
LocalAutoInclude ( _tables [ _mainTableIndex ] , "a" ) ;
62
62
return this ;
63
63
64
- void LocalAutoInclude ( ZoreTableInfo table , string alias , string navPath = "" )
64
+ void LocalAutoInclude ( ZeroTableInfo table , string alias , string navPath = "" )
65
65
{
66
66
if ( ignores . ContainsKey ( table . CsName ) ) return ;
67
67
ignores . Add ( table . CsName , true ) ;
@@ -179,7 +179,7 @@ SelectImpl Join(string joinType, string tableName, params string[] onFields)
179
179
class TableAliasInfo
180
180
{
181
181
public string Alias { get ; set ; }
182
- public ZoreTableInfo Table { get ; set ; }
182
+ public ZeroTableInfo Table { get ; set ; }
183
183
public string [ ] NavPath { get ; set ; }
184
184
public List < NativeTuple < string , Action < SelectImpl > > > IncludeMany { get ; set ; } = new List < NativeTuple < string , Action < SelectImpl > > > ( ) ;
185
185
}
@@ -200,7 +200,7 @@ string GetMaxAlias()
200
200
return alias ;
201
201
}
202
202
}
203
- TableAliasInfo FlagFetchResult ( ZoreTableInfo table , string alias , string navPath )
203
+ TableAliasInfo FlagFetchResult ( ZeroTableInfo table , string alias , string navPath )
204
204
{
205
205
var tableAlias = _tableAlias . Where ( a => a . Alias == alias ) . FirstOrDefault ( ) ;
206
206
if ( tableAlias == null )
@@ -533,7 +533,7 @@ public SelectImpl ForUpdate(bool nowait = false)
533
533
return this ;
534
534
}
535
535
536
- NativeTuple < string , ColumnInfo > ParseField ( ZoreTableInfo firstTable , string firstTableAlias , string property )
536
+ NativeTuple < string , ColumnInfo > ParseField ( ZeroTableInfo firstTable , string firstTableAlias , string property )
537
537
{
538
538
if ( string . IsNullOrEmpty ( property ) ) return null ;
539
539
var field = property . Split ( '.' ) . Select ( a => a . Trim ( ) ) . ToArray ( ) ;
0 commit comments