Class FieldFactory
Creates attribute models from bound property objects or from lensed properties
public static class FieldFactory
- Inheritance
-
FieldFactory
- Inherited Members
Methods
CreateBLOB(ISurface, string, IValue<byte[]>?, byte[]?)
public static IField<byte[]> CreateBLOB(ISurface surface, string label = "", IValue<byte[]>? prop = null, byte[]? initialValue = null)
Parameters
Returns
CreateBLOB(ISurface, PrimitiveAttribute<byte[]>)
public static IField<byte[]> CreateBLOB(ISurface surface, PrimitiveAttribute<byte[]> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<byte[]>
Returns
CreateBoolean(ISurface, string, IValue<bool>?, bool)
public static IField<bool> CreateBoolean(ISurface surface, string label = "", IValue<bool>? prop = null, bool initialValue = false)
Parameters
Returns
CreateBoolean(ISurface, PrimitiveAttribute<bool>)
public static IField<bool> CreateBoolean(ISurface surface, PrimitiveAttribute<bool> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<bool>
Returns
CreateCurrency(ISurface, string, IValue<decimal>?, decimal)
public static IField<decimal> CreateCurrency(ISurface surface, string label = "", IValue<decimal>? prop = null, decimal initialValue = 0)
Parameters
Returns
CreateCurrency(ISurface, PrimitiveAttribute<decimal>)
public static IField<decimal> CreateCurrency(ISurface surface, PrimitiveAttribute<decimal> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<decimal>
Returns
CreateDate(ISurface, string, IValue<DateOnly>?, DateOnly)
public static IField<DateOnly> CreateDate(ISurface surface, string label = "", IValue<DateOnly>? prop = null, DateOnly initialValue = default)
Parameters
Returns
CreateDate(ISurface, PrimitiveAttribute<DateOnly>)
public static IField<DateOnly> CreateDate(ISurface surface, PrimitiveAttribute<DateOnly> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<DateOnly>
Returns
CreateDateTime(ISurface, string, IValue<DateTime>?, DateTime)
public static IField<DateTime> CreateDateTime(ISurface surface, string label = "", IValue<DateTime>? prop = null, DateTime initialValue = default)
Parameters
Returns
CreateDateTime(ISurface, PrimitiveAttribute<DateTime>)
public static IField<DateTime> CreateDateTime(ISurface surface, PrimitiveAttribute<DateTime> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<DateTime>
Returns
CreateDecimal(ISurface, string, IValue<decimal>?, decimal)
public static IField<decimal> CreateDecimal(ISurface surface, string label = "", IValue<decimal>? prop = null, decimal initialValue = 0)
Parameters
Returns
CreateDecimal(ISurface, PrimitiveAttribute<decimal>)
public static IField<decimal> CreateDecimal(ISurface surface, PrimitiveAttribute<decimal> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<decimal>
Returns
CreateFile(ISurface, string, IValue<FileDocument?>?, FileDocument?)
public static IField<FileDocument?> CreateFile(ISurface surface, string label = "", IValue<FileDocument?>? prop = null, FileDocument? initialValue = null)
Parameters
surfaceISurfacelabelstringpropIValue<FileDocument>initialValueFileDocument
Returns
CreateFile(ISurface, FileProperty)
public static IField<FileDocument?> CreateFile(ISurface surface, FileProperty prop)
Parameters
surfaceISurfacepropFileProperty
Returns
CreateGUID(ISurface, string, IValue<Guid>?, Guid)
public static IField<Guid> CreateGUID(ISurface surface, string label = "", IValue<Guid>? prop = null, Guid initialValue = default)
Parameters
Returns
CreateGUID(ISurface, PrimitiveAttribute<Guid>)
public static IField<Guid> CreateGUID(ISurface surface, PrimitiveAttribute<Guid> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<Guid>
Returns
CreateImage(ISurface, string, IValue<ImageDocument?>?, ImageDocument?)
public static IField<ImageDocument?> CreateImage(ISurface surface, string label = "", IValue<ImageDocument?>? prop = null, ImageDocument? initialValue = null)
Parameters
surfaceISurfacelabelstringpropIValue<ImageDocument>initialValueImageDocument
Returns
CreateImage(ISurface, ImageProperty)
public static IField<ImageDocument?> CreateImage(ISurface surface, ImageProperty prop)
Parameters
surfaceISurfacepropImageProperty
Returns
CreateInlineReference<T>(ISurface, EntityReferenceProperty<T>, IEntityQuery<T>?)
public static IField<T?> CreateInlineReference<T>(ISurface surface, EntityReferenceProperty<T> prop, IEntityQuery<T>? choices = null) where T : IEntity<T>
Parameters
surfaceISurfacepropEntityReferenceProperty<T>choicesIEntityQuery<T>
Returns
- IField<T>
Type Parameters
T
CreateInlineReference<T>(ISurface, EntityReferenceProperty<T>, IQueryable<T>?)
public static IField<T?> CreateInlineReference<T>(ISurface surface, EntityReferenceProperty<T> prop, IQueryable<T>? choices = null) where T : IEntity<T>
Parameters
surfaceISurfacepropEntityReferenceProperty<T>choicesIQueryable<T>
Returns
- IField<T>
Type Parameters
T
CreateInstant(ISurface, string, IValue<DateTimeOffset>?, DateTimeOffset)
public static IField<DateTimeOffset> CreateInstant(ISurface surface, string label = "", IValue<DateTimeOffset>? prop = null, DateTimeOffset initialValue = default)
Parameters
surfaceISurfacelabelstringpropIValue<DateTimeOffset>initialValueDateTimeOffset
Returns
CreateInstant(ISurface, PrimitiveAttribute<DateTimeOffset>)
public static IField<DateTimeOffset> CreateInstant(ISurface surface, PrimitiveAttribute<DateTimeOffset> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<DateTimeOffset>
Returns
CreateInteger(ISurface, string, IValue<int>?, int)
public static IField<int> CreateInteger(ISurface surface, string label = "", IValue<int>? prop = null, int initialValue = 0)
Parameters
Returns
CreateInteger(ISurface, PrimitiveAttribute<int>)
public static IField<int> CreateInteger(ISurface surface, PrimitiveAttribute<int> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<int>
Returns
CreateLong(ISurface, string, IValue<long>?, long)
public static IField<long> CreateLong(ISurface surface, string label = "", IValue<long>? prop = null, long initialValue = 0)
Parameters
Returns
CreateLong(ISurface, PrimitiveAttribute<long>)
public static IField<long> CreateLong(ISurface surface, PrimitiveAttribute<long> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<long>
Returns
CreateLookupCollection<T>(ISurface, IEntityQuery<T>, EntityCollectionProperty<T>, bool)
public static IField<IEntitySet<T>> CreateLookupCollection<T>(ISurface surface, IEntityQuery<T> choices, EntityCollectionProperty<T> prop, bool listEditable = true) where T : IEntity<T>
Parameters
surfaceISurfacechoicesIEntityQuery<T>propEntityCollectionProperty<T>listEditablebool
Returns
- IField<IEntitySet<T>>
Type Parameters
T
CreateLookupCollection<T>(ISurface, IQueryable<T>, EntityCollectionProperty<T>, bool)
public static IField<IEntitySet<T>> CreateLookupCollection<T>(ISurface surface, IQueryable<T> choices, EntityCollectionProperty<T> prop, bool listEditable = true) where T : IEntity<T>
Parameters
surfaceISurfacechoicesIQueryable<T>propEntityCollectionProperty<T>listEditablebool
Returns
- IField<IEntitySet<T>>
Type Parameters
T
CreateNullableBLOB(ISurface, string, IValue<byte[]?>?, byte[]?)
public static IField<byte[]?> CreateNullableBLOB(ISurface surface, string label = "", IValue<byte[]?>? prop = null, byte[]? initialValue = null)
Parameters
Returns
CreateNullableBLOB(ISurface, PrimitiveAttribute<byte[]?>)
public static IField<byte[]?> CreateNullableBLOB(ISurface surface, PrimitiveAttribute<byte[]?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<byte[]>
Returns
CreateNullableBoolean(ISurface, string, IValue<bool?>?, bool?)
public static IField<bool?> CreateNullableBoolean(ISurface surface, string label = "", IValue<bool?>? prop = null, bool? initialValue = null)
Parameters
Returns
CreateNullableBoolean(ISurface, PrimitiveAttribute<bool?>)
public static IField<bool?> CreateNullableBoolean(ISurface surface, PrimitiveAttribute<bool?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<bool?>
Returns
CreateNullableCurrency(ISurface, string, IValue<decimal?>?, decimal?)
public static IField<decimal?> CreateNullableCurrency(ISurface surface, string label = "", IValue<decimal?>? prop = null, decimal? initialValue = null)
Parameters
Returns
CreateNullableCurrency(ISurface, PrimitiveAttribute<decimal?>)
public static IField<decimal?> CreateNullableCurrency(ISurface surface, PrimitiveAttribute<decimal?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<decimal?>
Returns
CreateNullableDate(ISurface, string, IValue<DateOnly?>?, DateOnly?)
public static IField<DateOnly?> CreateNullableDate(ISurface surface, string label = "", IValue<DateOnly?>? prop = null, DateOnly? initialValue = null)
Parameters
Returns
CreateNullableDate(ISurface, PrimitiveAttribute<DateOnly?>)
public static IField<DateOnly?> CreateNullableDate(ISurface surface, PrimitiveAttribute<DateOnly?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<DateOnly?>
Returns
CreateNullableDateTime(ISurface, string, IValue<DateTime?>?, DateTime?)
public static IField<DateTime?> CreateNullableDateTime(ISurface surface, string label = "", IValue<DateTime?>? prop = null, DateTime? initialValue = null)
Parameters
Returns
CreateNullableDateTime(ISurface, PrimitiveAttribute<DateTime?>)
public static IField<DateTime?> CreateNullableDateTime(ISurface surface, PrimitiveAttribute<DateTime?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<DateTime?>
Returns
CreateNullableDecimal(ISurface, string, IValue<decimal?>?, decimal?)
public static IField<decimal?> CreateNullableDecimal(ISurface surface, string label = "", IValue<decimal?>? prop = null, decimal? initialValue = null)
Parameters
Returns
CreateNullableDecimal(ISurface, PrimitiveAttribute<decimal?>)
public static IField<decimal?> CreateNullableDecimal(ISurface surface, PrimitiveAttribute<decimal?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<decimal?>
Returns
CreateNullableGUID(ISurface, string, IValue<Guid?>?, Guid?)
public static IField<Guid?> CreateNullableGUID(ISurface surface, string label = "", IValue<Guid?>? prop = null, Guid? initialValue = null)
Parameters
Returns
CreateNullableGUID(ISurface, PrimitiveAttribute<Guid?>)
public static IField<Guid?> CreateNullableGUID(ISurface surface, PrimitiveAttribute<Guid?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<Guid?>
Returns
CreateNullableInstant(ISurface, string, IValue<DateTimeOffset?>?, DateTimeOffset?)
public static IField<DateTimeOffset?> CreateNullableInstant(ISurface surface, string label = "", IValue<DateTimeOffset?>? prop = null, DateTimeOffset? initialValue = null)
Parameters
surfaceISurfacelabelstringpropIValue<DateTimeOffset?>initialValueDateTimeOffset?
Returns
CreateNullableInstant(ISurface, PrimitiveAttribute<DateTimeOffset?>)
public static IField<DateTimeOffset?> CreateNullableInstant(ISurface surface, PrimitiveAttribute<DateTimeOffset?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<DateTimeOffset?>
Returns
CreateNullableInteger(ISurface, string, IValue<int?>?, int?)
public static IField<int?> CreateNullableInteger(ISurface surface, string label = "", IValue<int?>? prop = null, int? initialValue = null)
Parameters
Returns
CreateNullableInteger(ISurface, PrimitiveAttribute<int?>)
public static IField<int?> CreateNullableInteger(ISurface surface, PrimitiveAttribute<int?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<int?>
Returns
CreateNullableLong(ISurface, string, IValue<long?>?, long?)
public static IField<long?> CreateNullableLong(ISurface surface, string label = "", IValue<long?>? prop = null, long? initialValue = null)
Parameters
Returns
CreateNullableLong(ISurface, PrimitiveAttribute<long?>)
public static IField<long?> CreateNullableLong(ISurface surface, PrimitiveAttribute<long?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<long?>
Returns
CreateNullableString(ISurface, string, IValue<string?>?, string?)
public static IField<string?> CreateNullableString(ISurface surface, string label = "", IValue<string?>? prop = null, string? initialValue = null)
Parameters
Returns
CreateNullableString(ISurface, PrimitiveAttribute<string?>)
public static IField<string?> CreateNullableString(ISurface surface, PrimitiveAttribute<string?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<string>
Returns
CreateNullableText(ISurface, string, IValue<string?>?, string?)
public static IField<string?> CreateNullableText(ISurface surface, string label = "", IValue<string?>? prop = null, string? initialValue = null)
Parameters
Returns
CreateNullableText(ISurface, PrimitiveAttribute<string?>)
public static IField<string?> CreateNullableText(ISurface surface, PrimitiveAttribute<string?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<string>
Returns
CreateNullableTime(ISurface, string, IValue<TimeOnly?>?, TimeOnly?)
public static IField<TimeOnly?> CreateNullableTime(ISurface surface, string label = "", IValue<TimeOnly?>? prop = null, TimeOnly? initialValue = null)
Parameters
Returns
CreateNullableTime(ISurface, PrimitiveAttribute<TimeOnly?>)
public static IField<TimeOnly?> CreateNullableTime(ISurface surface, PrimitiveAttribute<TimeOnly?> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<TimeOnly?>
Returns
CreateString(ISurface, string, IValue<string>?, string?)
public static IField<string> CreateString(ISurface surface, string label = "", IValue<string>? prop = null, string? initialValue = null)
Parameters
Returns
CreateString(ISurface, PrimitiveAttribute<string>)
public static IField<string> CreateString(ISurface surface, PrimitiveAttribute<string> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<string>
Returns
CreateText(ISurface, string, IValue<string>?, string?)
public static IField<string> CreateText(ISurface surface, string label = "", IValue<string>? prop = null, string? initialValue = null)
Parameters
Returns
CreateText(ISurface, PrimitiveAttribute<string>)
public static IField<string> CreateText(ISurface surface, PrimitiveAttribute<string> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<string>
Returns
CreateTime(ISurface, string, IValue<TimeOnly>?, TimeOnly)
public static IField<TimeOnly> CreateTime(ISurface surface, string label = "", IValue<TimeOnly>? prop = null, TimeOnly initialValue = default)
Parameters
Returns
CreateTime(ISurface, PrimitiveAttribute<TimeOnly>)
public static IField<TimeOnly> CreateTime(ISurface surface, PrimitiveAttribute<TimeOnly> prop)
Parameters
surfaceISurfacepropPrimitiveAttribute<TimeOnly>
Returns
CreateValueCollection<T>(ISurface, bool, EntityCollectionProperty<T>)
public static IField<IEntitySet<T>> CreateValueCollection<T>(ISurface surface, bool contentEditable, EntityCollectionProperty<T> prop) where T : IEntity<T>
Parameters
surfaceISurfacecontentEditableboolpropEntityCollectionProperty<T>
Returns
- IField<IEntitySet<T>>
Type Parameters
T
IsInlineCollection(RelationshipInfo)
public static bool IsInlineCollection(RelationshipInfo propInfo)
Parameters
propInfoRelationshipInfo