mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.2 KiB
32 lines
1.2 KiB
@typeparam TEntityType
|
|
@typeparam TResourceType
|
|
@using Volo.Abp.Data
|
|
|
|
@{
|
|
Entity.SetDefaultsForExtraProperties();
|
|
|
|
foreach (var propertyInfo in Properties)
|
|
{
|
|
if (!propertyInfo.Name.EndsWith("_Text"))
|
|
{
|
|
if (propertyInfo.IsEnum())
|
|
{
|
|
<SelectExtensionProperty PropertyInfo="@propertyInfo" Entity="@Entity" TEntity="TEntityType" TResourceType="TResourceType" LH="@LH" />
|
|
}
|
|
else if (!propertyInfo.Lookup.Url.IsNullOrEmpty())
|
|
{
|
|
<LookupExtensionProperty PropertyInfo="@propertyInfo" Entity="@Entity" TEntity="TEntityType" TResourceType="TResourceType" LH="@LH" />
|
|
}
|
|
else
|
|
{
|
|
var inputType = propertyInfo.GetInputType();
|
|
__builder.OpenComponent(0, inputType.MakeGenericType(new[] { typeof(TEntityType), typeof(TResourceType) }));
|
|
__builder.AddAttribute(1, "PropertyInfo", propertyInfo);
|
|
__builder.AddAttribute(2, "Entity", Entity);
|
|
__builder.AddAttribute(3, "LH", LH);
|
|
__builder.AddAttribute(4, "ModalType", ModalType);
|
|
__builder.CloseComponent();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|