Skip to content

Commit 8a70974

Browse files
committed
- rename ZoreEntity to ZeroEntity
1 parent bf92f09 commit 8a70974

12 files changed

+68
-68
lines changed

Examples/zore_entity/Program.cs renamed to Examples/zero_entity/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
using FreeSql;
33
using FreeSql.DataAnnotations;
4-
using FreeSql.Extensions.ZoreEntity;
4+
using FreeSql.Extensions.ZeroEntity;
55
using FreeSql.Internal.Model;
66
using Newtonsoft.Json;
77
using Newtonsoft.Json.Linq;
@@ -17,7 +17,7 @@
1717
{
1818
var json = JsonConvert.SerializeObject(Helper.GetTestDesc());
1919

20-
var dyctx = new ZoreDbContext(fsql, JsonConvert.DeserializeObject<TableDescriptor[]>(@"
20+
var dyctx = new ZeroDbContext(fsql, JsonConvert.DeserializeObject<TableDescriptor[]>(@"
2121
[
2222
{
2323
""Name"":""User"",

Examples/zore_entity/zore_entity.csproj renamed to Examples/zero_entity/zero_entity.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<ProjectReference Include="..\..\Extensions\FreeSql.Extensions.ZoreEntity\FreeSql.Extensions.ZoreEntity.csproj" />
15+
<ProjectReference Include="..\..\Extensions\FreeSql.Extensions.ZeroEntity\FreeSql.Extensions.ZeroEntity.csproj" />
1616
<ProjectReference Include="..\..\Providers\FreeSql.Provider.Sqlite\FreeSql.Provider.Sqlite.csproj" />
1717
</ItemGroup>
1818

Extensions/FreeSql.Extensions.ZoreEntity/FreeSql.Extensions.ZoreEntity.csproj renamed to Extensions/FreeSql.Extensions.ZeroEntity/FreeSql.Extensions.ZeroEntity.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</ItemGroup>
2929

3030
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
31-
<DocumentationFile>FreeSql.Extensions.ZoreEntity.xml</DocumentationFile>
31+
<DocumentationFile>FreeSql.Extensions.ZeroEntity.xml</DocumentationFile>
3232
<WarningLevel>3</WarningLevel>
3333
</PropertyGroup>
3434

Extensions/FreeSql.Extensions.ZoreEntity/FreeSql.Extensions.ZoreEntity.xml renamed to Extensions/FreeSql.Extensions.ZeroEntity/FreeSql.Extensions.ZeroEntity.xml

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Extensions/FreeSql.Extensions.ZoreEntity/ZoreDbContext.SelectImpl.cs renamed to Extensions/FreeSql.Extensions.ZeroEntity/ZeroDbContext.SelectImpl.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
using System.Text;
1111
using T = System.Collections.Generic.Dictionary<string, object>;
1212

13-
namespace FreeSql.Extensions.ZoreEntity
13+
namespace FreeSql.Extensions.ZeroEntity
1414
{
15-
partial class ZoreDbContext
15+
partial class ZeroDbContext
1616
{
1717
public class SelectImpl
1818
{
19-
ZoreDbContext _dbcontext;
19+
ZeroDbContext _dbcontext;
2020
IFreeSql _orm => _dbcontext._orm;
21-
List<ZoreTableInfo> _tables => _dbcontext._tables;
21+
List<ZeroTableInfo> _tables => _dbcontext._tables;
2222
int _mainTableIndex = -1;
2323
List<TableAliasInfo> _tableAlias;
2424
ISelect<TestDynamicFilterInfo> _select;
@@ -33,7 +33,7 @@ public class SelectImpl
3333
bool _includeAll = false;
3434

3535
SelectImpl() { }
36-
internal SelectImpl(ZoreDbContext dbcontext, string tableName)
36+
internal SelectImpl(ZeroDbContext dbcontext, string tableName)
3737
{
3838
_dbcontext = dbcontext;
3939
var tableIndex = _tables.FindIndex(a => a.CsName.ToLower() == tableName?.ToLower());
@@ -61,7 +61,7 @@ public SelectImpl IncludeAll()
6161
LocalAutoInclude(_tables[_mainTableIndex], "a");
6262
return this;
6363

64-
void LocalAutoInclude(ZoreTableInfo table, string alias, string navPath = "")
64+
void LocalAutoInclude(ZeroTableInfo table, string alias, string navPath = "")
6565
{
6666
if (ignores.ContainsKey(table.CsName)) return;
6767
ignores.Add(table.CsName, true);
@@ -179,7 +179,7 @@ SelectImpl Join(string joinType, string tableName, params string[] onFields)
179179
class TableAliasInfo
180180
{
181181
public string Alias { get; set; }
182-
public ZoreTableInfo Table { get; set; }
182+
public ZeroTableInfo Table { get; set; }
183183
public string[] NavPath { get; set; }
184184
public List<NativeTuple<string, Action<SelectImpl>>> IncludeMany { get; set; } = new List<NativeTuple<string, Action<SelectImpl>>>();
185185
}
@@ -200,7 +200,7 @@ string GetMaxAlias()
200200
return alias;
201201
}
202202
}
203-
TableAliasInfo FlagFetchResult(ZoreTableInfo table, string alias, string navPath)
203+
TableAliasInfo FlagFetchResult(ZeroTableInfo table, string alias, string navPath)
204204
{
205205
var tableAlias = _tableAlias.Where(a => a.Alias == alias).FirstOrDefault();
206206
if (tableAlias == null)
@@ -533,7 +533,7 @@ public SelectImpl ForUpdate(bool nowait = false)
533533
return this;
534534
}
535535

536-
NativeTuple<string, ColumnInfo> ParseField(ZoreTableInfo firstTable, string firstTableAlias, string property)
536+
NativeTuple<string, ColumnInfo> ParseField(ZeroTableInfo firstTable, string firstTableAlias, string property)
537537
{
538538
if (string.IsNullOrEmpty(property)) return null;
539539
var field = property.Split('.').Select(a => a.Trim()).ToArray();

0 commit comments

Comments
 (0)