{
"propertyTemplates":[
{
"placeholder" : "{{Property_Enum_Variable_Here}}",
"condition" : "{{Property_Advanced_Filter_Here}} == true",
"templates" : [
{
"type" : "enum",
"content" : "var {{property_Name_Here}}Filter = ({{Property_Type_Here}}) input.{{Property_Name_Here}}Filter;
"
}
]
},
{
"placeholder" : "{{Property_Query_Filter_Here}}",
"condition" : "{{Property_Advanced_Filter_Here}} == true",
"templates" : [
{
"type" : "DateTime",
"content" : "
.WhereIf(input.Min{{Property_Name_Here}}Filter != null, e => e.{{Property_Name_Here}} >= input.Min{{Property_Name_Here}}Filter)
.WhereIf(input.Max{{Property_Name_Here}}Filter != null, e => e.{{Property_Name_Here}} <= input.Max{{Property_Name_Here}}Filter)"
},
{
"type" : "numeric",
"content" : "
.WhereIf(input.Min{{Property_Name_Here}}Filter != null, e => e.{{Property_Name_Here}} >= input.Min{{Property_Name_Here}}Filter)
.WhereIf(input.Max{{Property_Name_Here}}Filter != null, e => e.{{Property_Name_Here}} <= input.Max{{Property_Name_Here}}Filter)"
},
{
"type" : "enum",
"content" : "
.WhereIf(input.{{Property_Name_Here}}Filter > -1, e => e.{{Property_Name_Here}} == {{property_Name_Here}}Filter)"
},
{
"type" : "string",
"content" : "
.WhereIf(!string.IsNullOrWhiteSpace(input.{{Property_Name_Here}}Filter), e => e.{{Property_Name_Here}}.ToLower() == input.{{Property_Name_Here}}Filter.ToLower().Trim())"
},
{
"type" : "bool",
"content" : "
.WhereIf(input.{{Property_Name_Here}}Filter > -1, e => Convert.ToInt32(e.{{Property_Name_Here}}) == input.{{Property_Name_Here}}Filter )"
},
{
"type" : "default",
"content" : "
.WhereIf(!string.IsNullOrWhiteSpace(input.{{Property_Name_Here}}Filter.ToString()), e => e.{{Property_Name_Here}}.ToString() == input.{{Property_Name_Here}}Filter.ToString().Trim())"
}
]
},
{
"placeholder" : "{{Property_Looped_Template_Here}}",
"templates" : [
{
"type" : "string",
"content" : " || e.{{Property_Name_Here}}.Contains(input.Filter)"
}
]
},
{
"placeholder" : "{{Property_Looped_Template_Excel_Here}}",
"templates" : [
{
"type" : "string",
"content" : " || e.{{Entity_Name_Here}}.{{Property_Name_Here}}.Contains(input.Filter)"
}
]
}
],
"navigationPropertyTemplates":[
{
"placeholder" : "{{NP_Query_Filter_Here}}",
"templates" : [
{
"relation" : "single",
"preventDuplicate" : true,
"content" : "
.WhereIf(!string.IsNullOrWhiteSpace(input.{{NP_Foreign_Entity_Name_Here}}{{NP_Display_Property_Name_Here}}{{NP_Duplication_Number_Here}}Filter), e => e.{{NP_Foreign_Entity_Name_Here}}{{NP_Display_Property_Name_Here}}{{NP_Duplication_Number_Here}}.ToLower() == input.{{NP_Foreign_Entity_Name_Here}}{{NP_Display_Property_Name_Here}}{{NP_Duplication_Number_Here}}Filter.ToLower().Trim())"
}
]
},
{
"placeholder" : "{{NP_Looped_Declaration_Here}}",
"templates" : [
{
"relation" : "single",
"preventDuplicate" : true,
"content" : "private readonly IRepository<{{NP_Foreign_Entity_Name_Here}},{{NP_Id_Type_Here}}> _{{nP_Foreign_Entity_Name_Here}}Repository;
"
}
]
},
{
"placeholder" : "{{NP_Looped_Ctor_Parameter_Here}}",
"templates" : [
{
"relation" : "single",
"preventDuplicate" : true,
"content" : ", IRepository<{{NP_Foreign_Entity_Name_Here}}, {{NP_Id_Type_Here}}> {{nP_Foreign_Entity_Name_Here}}Repository"
}
]
},
{
"placeholder" : "{{NP_Looped_Ctor_Initialize_Here}}",
"templates" : [
{
"relation" : "single",
"preventDuplicate" : true,
"content" : "_{{nP_Foreign_Entity_Name_Here}}Repository = {{nP_Foreign_Entity_Name_Here}}Repository;
"
}
]
},
{
"placeholder" : "{{NP_Looped_Query_Join_Here}}",
"templates" : [
{
"relation" : "single",
"content" : "join o{{Loop_Index}} in _{{nP_Foreign_Entity_Name_Here}}Repository.GetAll() on o.{{NP_Name_Here}} equals o{{Loop_Index}}.Id into j{{Loop_Index}}
from s{{Loop_Index}} in j{{Loop_Index}}.DefaultIfEmpty()
"
}
]
},
{
"placeholder" : "{{NP_Looped_Query_Join_Excel_Here}}",
"templates" : [
{
"relation" : "single",
"content" : "join o{{Loop_Index}} in _{{nP_Foreign_Entity_Name_Here}}Repository.GetAll() on o.{{NP_Name_Here}} equals o{{Loop_Index}}.Id into j{{Loop_Index}}
from s{{Loop_Index}} in j{{Loop_Index}}.DefaultIfEmpty()
"
}
]
},
{
"placeholder" : "{{NP_Looped_Map_Join_Here}}",
"templates" : [
{
"relation" : "single",
"content" : ", {{NP_Foreign_Entity_Name_Here}}{{NP_Display_Property_Name_Here}}{{NP_Duplication_Number_Here}} = s{{Loop_Index}} == null ? \"\" : s{{Loop_Index}}.{{NP_Display_Property_Name_Here}}.ToString()
"
}
]
},
{
"placeholder" : "{{NP_Looped_Map_Join_Excel_Here}}",
"templates" : [
{
"relation" : "single",
"content" : ", {{NP_Foreign_Entity_Name_Here}}{{NP_Display_Property_Name_Here}}{{NP_Duplication_Number_Here}} = s{{Loop_Index}} == null ? \"\" : s{{Loop_Index}}.{{NP_Display_Property_Name_Here}}.ToString()
"
}
]
},
{
"placeholder" : "{{NP_Loop_Include_In_Get_Here}}",
"templates" : [
{
"relation" : "single",
"content" : "
if (output.{{Entity_Name_Here}}.{{NP_Name_Here}} != null)
{
var {{nP_Foreign_Entity_Name_Here}} = await _{{nP_Foreign_Entity_Name_Here}}Repository.FirstOrDefaultAsync(({{NP_Id_Type_Here}})output.{{Entity_Name_Here}}.{{NP_Name_Here}});
output.{{NP_Foreign_Entity_Name_Here}}{{NP_Display_Property_Name_Here}}{{NP_Duplication_Number_Here}} = {{nP_Foreign_Entity_Name_Here}}.{{NP_Display_Property_Name_Here}}.ToString();
}"
}
]
},
{
"placeholder" : "{{NP_Using_Looped_Template_Here}}",
"preventDuplicate":true,
"templates" : [
{
"relation" : "single",
"content" : "using {{NP_Namespace_Here}};
"
},
{
"relation" : "multi",
"content" : "using {{NP_Namespace_Here}};
"
}
]
},
{
"placeholder" : "{{NP_Looped_GetAllForLookupTable_Here}}",
"templates" : [
{
"relation" : "single",
"preventDuplicate":true,
"content" : " [AbpAuthorize(AppPermissions.{{Permission_Name_Here}})]
public async Task<PagedResultDto<{{NP_Foreign_Entity_Name_Here}}LookupTableDto>> GetAll{{NP_Foreign_Entity_Name_Here}}ForLookupTable(GetAllForLookupTableInput input)
{
var query = _{{nP_Foreign_Entity_Name_Here}}Repository.GetAll().WhereIf(
!string.IsNullOrWhiteSpace(input.Filter),
e=> e.{{NP_Display_Property_Name_Here}}.ToString().Contains(input.Filter)
);
var totalCount = await query.CountAsync();
var {{nP_Foreign_Entity_Name_Here}}List = await query
.PageBy(input)
.ToListAsync();
var lookupTableDtoList = new List<{{NP_Foreign_Entity_Name_Here}}LookupTableDto>();
foreach(var {{nP_Foreign_Entity_Name_Here}} in {{nP_Foreign_Entity_Name_Here}}List){
lookupTableDtoList.Add(new {{NP_Foreign_Entity_Name_Here}}LookupTableDto
{
Id = {{nP_Foreign_Entity_Name_Here}}.Id{{NP_Id_Type_ToStringIfNeeded_Here}},
DisplayName = {{nP_Foreign_Entity_Name_Here}}.{{NP_Display_Property_Name_Here}}.ToString()
});
}
return new PagedResultDto<{{NP_Foreign_Entity_Name_Here}}LookupTableDto>(
totalCount,
lookupTableDtoList
);
}"
}
]
}
],
"conditionalTemplates":[
{
"placeholder": "{{Primary_Key_Inside_Tag_Here}}",
"condition": "{{Primary_Key_Here}} != 'int'",
"content": "<{{Primary_Key_He
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
asp.net zero core 6.2.0 v6.2 (2018-10-26) Added different Metronic layout support (default and demo8) Upgraded to Angular v7.0. Display cookie consent to users. Upgraded to FontAwesome v5. Allow searching on permission tree.
资源推荐
资源详情
资源评论
收起资源包目录
aspnet-zero-core-6.2.0 (2000个子文件)
Tabbar.axml 522B
Toolbar.axml 383B
MyCompanyName.AbpZeroTemplate.Mobile.Droid.csproj.bak 38KB
Delete-BIN-OBJ-Folders.bat 347B
refresh.bat 32B
compilerconfig.json.bindings 41B
.bowerrc 76B
nginx.conf 606B
packages.config 13KB
packages.config 11KB
app.config 4KB
app.config 3KB
web.config 975B
log4net.config 668B
log4net.config 646B
log4net.config 646B
log4net.config 646B
web.config 589B
web.config 589B
web.config 240B
app.config 185B
app.config 184B
App.config 178B
Resource.Designer.cs 252KB
20170406083347_Initial_Migration.cs 53KB
20181012141151_Upgraded_To_Abp_v3_9_0.Designer.cs 50KB
20180807062930_Upgrade_ABP_v3.8.2.Designer.cs 50KB
20180726063233_Upgraded_ABP_v3.8.0.Designer.cs 50KB
20180731052649_Upgrade_ABP_v3.8.1.Designer.cs 50KB
20180718081610_Abp_v3_7_Changes.Designer.cs 50KB
AbpZeroTemplateDbContextModelSnapshot.cs 50KB
20180320065710_Upgraded_To_Abp_V3_5.Designer.cs 47KB
20180118065703_Added_Entity_History.Designer.cs 46KB
20170914084815_Invoice_Changes.Designer.cs 42KB
20170914070123_Added_ReceiverReadState_To_ChatMessage.Designer.cs 42KB
20170914121022_TypeChange_SharedMessageId_String_Guid.Designer.cs 42KB
20170913133916_Added_SharedMessageId_To_ChatMessage.Designer.cs 42KB
20170714081027_Added_Relation_Between_Edition_And_SubscriptionPayment.Designer.cs 42KB
20170724142223_Upgraded_To_Abp_V2_2.Designer.cs 42KB
20170704084731_Added_GoogleAuthenticatorKey_Column.Designer.cs 41KB
20170623075109_AspNetZero_V4_1_Changes.Designer.cs 41KB
20170406083347_Initial_Migration.Designer.cs 38KB
AccountController.cs 34KB
TokenAuthController.cs 25KB
TenantSettingsAppService.cs 22KB
HostSettingsAppService.cs 18KB
HostDashboardAppService_Tests.cs 18KB
UiCustomizationSettingsAppService.cs 17KB
SubscriptionManagement_Tests.cs 17KB
UserAppService.cs 16KB
UserEmailer.cs 16KB
AbpApiClient.cs 15KB
TenantDetailsViewModel.cs 14KB
TenantManager.cs 14KB
TenantRegistrationAppService.cs 13KB
ProfileAppService.cs 13KB
MainViewModel.cs 12KB
WebRequestExecuter.cs 12KB
AppTestBase.cs 10KB
LoginViewModel.cs 10KB
UserDetailsViewModel.cs 10KB
AuditLogAppService.cs 10KB
TenantDemoDataBuilder.cs 10KB
LanguageAppService.cs 10KB
ChatMessageManager.cs 10KB
AccountAppService.cs 9KB
PaymentAppService.cs 9KB
FamFamFamFlagsHelper.cs 9KB
20170623075109_AspNetZero_V4_1_Changes.cs 9KB
TenantRegistrationController.cs 8KB
TenantRegistrationAppService_Tests.cs 8KB
UserAppService_Link_Tests.cs 8KB
Startup.cs 8KB
AppSettingProvider.cs 8KB
InstallAppService.cs 8KB
20180118065703_Added_Entity_History.cs 8KB
GoogleTwoFactorAuthenticateService.cs 8KB
UserFriendsCache.cs 8KB
OrganizationUnitAppService.cs 7KB
ScriptPaths.cs 7KB
FriendshipAppService.cs 7KB
ConsentController.cs 7KB
EditionAppService.cs 7KB
PaymentController.cs 7KB
HostDashboardAppService.cs 7KB
AppAreaNameNavigationProvider.cs 7KB
Startup.cs 7KB
AppAuthorizationProvider.cs 7KB
FontExtensions.cs 7KB
CustomDtoMapper.cs 7KB
UsersViewModel.cs 6KB
DashboardRandomDataGenerator.cs 6KB
TenantsViewModel.cs 6KB
TenantCustomizationController.cs 6KB
OrganizationUnitAppService_Tests.cs 6KB
AuthConfigurer.cs 6KB
UserAppService_Update_Tests.cs 6KB
UserRegistrationManager.cs 6KB
LanguageAppService_Tests.cs 6KB
TenantAppService.cs 6KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
- ludewig2019-03-06可以运行,很好的学习资料
- cna_net2019-12-20abp专用,很好
coolincy
- 粉丝: 4
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功