|
|
@ -48,27 +48,27 @@ namespace Squidex.Domain.Apps.Core.Schemas |
|
|
this.typeNameRegistry = typeNameRegistry; |
|
|
this.typeNameRegistry = typeNameRegistry; |
|
|
|
|
|
|
|
|
Add<BooleanFieldProperties>( |
|
|
Add<BooleanFieldProperties>( |
|
|
(id, name, partitioning, properties) => |
|
|
(id, name, partitioning, properties) => |
|
|
new BooleanField(id, name, partitioning, (BooleanFieldProperties)properties)); |
|
|
new BooleanField(id, name, partitioning, (BooleanFieldProperties)properties)); |
|
|
|
|
|
|
|
|
Add<NumberFieldProperties>( |
|
|
Add<NumberFieldProperties>( |
|
|
(id, name, partitioning, properties) => |
|
|
(id, name, partitioning, properties) => |
|
|
new NumberField(id, name, partitioning, (NumberFieldProperties)properties)); |
|
|
new NumberField(id, name, partitioning, (NumberFieldProperties)properties)); |
|
|
|
|
|
|
|
|
Add<StringFieldProperties>( |
|
|
Add<StringFieldProperties>( |
|
|
(id, name, partitioning, properties) => |
|
|
(id, name, partitioning, properties) => |
|
|
new StringField(id, name, partitioning, (StringFieldProperties)properties)); |
|
|
new StringField(id, name, partitioning, (StringFieldProperties)properties)); |
|
|
|
|
|
|
|
|
Add<DateTimeFieldProperties>( |
|
|
Add<DateTimeFieldProperties>( |
|
|
(id, name, partitioning, properties) => |
|
|
(id, name, partitioning, properties) => |
|
|
new DateTimeField(id, name, partitioning, (DateTimeFieldProperties)properties)); |
|
|
new DateTimeField(id, name, partitioning, (DateTimeFieldProperties)properties)); |
|
|
|
|
|
|
|
|
Add<JsonFieldProperties>( |
|
|
Add<JsonFieldProperties>( |
|
|
(id, name, partitioning, properties) => |
|
|
(id, name, partitioning, properties) => |
|
|
new JsonField(id, name, partitioning, (JsonFieldProperties)properties)); |
|
|
new JsonField(id, name, partitioning, (JsonFieldProperties)properties)); |
|
|
|
|
|
|
|
|
Add<AssetsFieldProperties>( |
|
|
Add<AssetsFieldProperties>( |
|
|
(id, name, partitioning, properties) => |
|
|
(id, name, partitioning, properties) => |
|
|
new AssetsField(id, name, partitioning, (AssetsFieldProperties)properties)); |
|
|
new AssetsField(id, name, partitioning, (AssetsFieldProperties)properties)); |
|
|
|
|
|
|
|
|
Add<ReferencesFieldProperties>( |
|
|
Add<ReferencesFieldProperties>( |
|
|
@ -76,7 +76,7 @@ namespace Squidex.Domain.Apps.Core.Schemas |
|
|
new ReferencesField(id, name, partitioning, (ReferencesFieldProperties)properties)); |
|
|
new ReferencesField(id, name, partitioning, (ReferencesFieldProperties)properties)); |
|
|
|
|
|
|
|
|
Add<GeolocationFieldProperties>( |
|
|
Add<GeolocationFieldProperties>( |
|
|
(id, name, partitioning, properties) => |
|
|
(id, name, partitioning, properties) => |
|
|
new GeolocationField(id, name, partitioning, (GeolocationFieldProperties)properties)); |
|
|
new GeolocationField(id, name, partitioning, (GeolocationFieldProperties)properties)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -85,9 +85,9 @@ namespace Squidex.Domain.Apps.Core.Schemas |
|
|
Guard.NotNull(fieldFactory, nameof(fieldFactory)); |
|
|
Guard.NotNull(fieldFactory, nameof(fieldFactory)); |
|
|
|
|
|
|
|
|
typeNameRegistry.Map(typeof(TFieldProperties)); |
|
|
typeNameRegistry.Map(typeof(TFieldProperties)); |
|
|
|
|
|
|
|
|
var registered = new Registered(fieldFactory, typeof(TFieldProperties)); |
|
|
var registered = new Registered(fieldFactory, typeof(TFieldProperties)); |
|
|
|
|
|
|
|
|
fieldsByPropertyType[registered.PropertiesType] = registered; |
|
|
fieldsByPropertyType[registered.PropertiesType] = registered; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|