Table of Contents

Class FieldFactory

Namespace
The.WPF.Fields
Assembly
Instagile.WPF.dll

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

surface ISurface
label string
prop IValue<byte[]>
initialValue byte[]

Returns

IField<byte[]>

CreateBLOB(ISurface, PrimitiveAttribute<byte[]>)

public static IField<byte[]> CreateBLOB(ISurface surface, PrimitiveAttribute<byte[]> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<byte[]>

Returns

IField<byte[]>

CreateBoolean(ISurface, string, IValue<bool>?, bool)

public static IField<bool> CreateBoolean(ISurface surface, string label = "", IValue<bool>? prop = null, bool initialValue = false)

Parameters

surface ISurface
label string
prop IValue<bool>
initialValue bool

Returns

IField<bool>

CreateBoolean(ISurface, PrimitiveAttribute<bool>)

public static IField<bool> CreateBoolean(ISurface surface, PrimitiveAttribute<bool> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<bool>

Returns

IField<bool>

CreateCurrency(ISurface, string, IValue<decimal>?, decimal)

public static IField<decimal> CreateCurrency(ISurface surface, string label = "", IValue<decimal>? prop = null, decimal initialValue = 0)

Parameters

surface ISurface
label string
prop IValue<decimal>
initialValue decimal

Returns

IField<decimal>

CreateCurrency(ISurface, PrimitiveAttribute<decimal>)

public static IField<decimal> CreateCurrency(ISurface surface, PrimitiveAttribute<decimal> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<decimal>

Returns

IField<decimal>

CreateDate(ISurface, string, IValue<DateOnly>?, DateOnly)

public static IField<DateOnly> CreateDate(ISurface surface, string label = "", IValue<DateOnly>? prop = null, DateOnly initialValue = default)

Parameters

surface ISurface
label string
prop IValue<DateOnly>
initialValue DateOnly

Returns

IField<DateOnly>

CreateDate(ISurface, PrimitiveAttribute<DateOnly>)

public static IField<DateOnly> CreateDate(ISurface surface, PrimitiveAttribute<DateOnly> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<DateOnly>

Returns

IField<DateOnly>

CreateDateTime(ISurface, string, IValue<DateTime>?, DateTime)

public static IField<DateTime> CreateDateTime(ISurface surface, string label = "", IValue<DateTime>? prop = null, DateTime initialValue = default)

Parameters

surface ISurface
label string
prop IValue<DateTime>
initialValue DateTime

Returns

IField<DateTime>

CreateDateTime(ISurface, PrimitiveAttribute<DateTime>)

public static IField<DateTime> CreateDateTime(ISurface surface, PrimitiveAttribute<DateTime> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<DateTime>

Returns

IField<DateTime>

CreateDecimal(ISurface, string, IValue<decimal>?, decimal)

public static IField<decimal> CreateDecimal(ISurface surface, string label = "", IValue<decimal>? prop = null, decimal initialValue = 0)

Parameters

surface ISurface
label string
prop IValue<decimal>
initialValue decimal

Returns

IField<decimal>

CreateDecimal(ISurface, PrimitiveAttribute<decimal>)

public static IField<decimal> CreateDecimal(ISurface surface, PrimitiveAttribute<decimal> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<decimal>

Returns

IField<decimal>

CreateFile(ISurface, string, IValue<FileDocument?>?, FileDocument?)

public static IField<FileDocument?> CreateFile(ISurface surface, string label = "", IValue<FileDocument?>? prop = null, FileDocument? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<FileDocument>
initialValue FileDocument

Returns

IField<FileDocument>

CreateFile(ISurface, FileProperty)

public static IField<FileDocument?> CreateFile(ISurface surface, FileProperty prop)

Parameters

surface ISurface
prop FileProperty

Returns

IField<FileDocument>

CreateGUID(ISurface, string, IValue<Guid>?, Guid)

public static IField<Guid> CreateGUID(ISurface surface, string label = "", IValue<Guid>? prop = null, Guid initialValue = default)

Parameters

surface ISurface
label string
prop IValue<Guid>
initialValue Guid

Returns

IField<Guid>

CreateGUID(ISurface, PrimitiveAttribute<Guid>)

public static IField<Guid> CreateGUID(ISurface surface, PrimitiveAttribute<Guid> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<Guid>

Returns

IField<Guid>

CreateImage(ISurface, string, IValue<ImageDocument?>?, ImageDocument?)

public static IField<ImageDocument?> CreateImage(ISurface surface, string label = "", IValue<ImageDocument?>? prop = null, ImageDocument? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<ImageDocument>
initialValue ImageDocument

Returns

IField<ImageDocument>

CreateImage(ISurface, ImageProperty)

public static IField<ImageDocument?> CreateImage(ISurface surface, ImageProperty prop)

Parameters

surface ISurface
prop ImageProperty

Returns

IField<ImageDocument>

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

surface ISurface
prop EntityReferenceProperty<T>
choices IEntityQuery<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

surface ISurface
prop EntityReferenceProperty<T>
choices IQueryable<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

surface ISurface
label string
prop IValue<DateTimeOffset>
initialValue DateTimeOffset

Returns

IField<DateTimeOffset>

CreateInstant(ISurface, PrimitiveAttribute<DateTimeOffset>)

public static IField<DateTimeOffset> CreateInstant(ISurface surface, PrimitiveAttribute<DateTimeOffset> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<DateTimeOffset>

Returns

IField<DateTimeOffset>

CreateInteger(ISurface, string, IValue<int>?, int)

public static IField<int> CreateInteger(ISurface surface, string label = "", IValue<int>? prop = null, int initialValue = 0)

Parameters

surface ISurface
label string
prop IValue<int>
initialValue int

Returns

IField<int>

CreateInteger(ISurface, PrimitiveAttribute<int>)

public static IField<int> CreateInteger(ISurface surface, PrimitiveAttribute<int> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<int>

Returns

IField<int>

CreateLong(ISurface, string, IValue<long>?, long)

public static IField<long> CreateLong(ISurface surface, string label = "", IValue<long>? prop = null, long initialValue = 0)

Parameters

surface ISurface
label string
prop IValue<long>
initialValue long

Returns

IField<long>

CreateLong(ISurface, PrimitiveAttribute<long>)

public static IField<long> CreateLong(ISurface surface, PrimitiveAttribute<long> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<long>

Returns

IField<long>

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

surface ISurface
choices IEntityQuery<T>
prop EntityCollectionProperty<T>
listEditable bool

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

surface ISurface
choices IQueryable<T>
prop EntityCollectionProperty<T>
listEditable bool

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

surface ISurface
label string
prop IValue<byte[]>
initialValue byte[]

Returns

IField<byte[]>

CreateNullableBLOB(ISurface, PrimitiveAttribute<byte[]?>)

public static IField<byte[]?> CreateNullableBLOB(ISurface surface, PrimitiveAttribute<byte[]?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<byte[]>

Returns

IField<byte[]>

CreateNullableBoolean(ISurface, string, IValue<bool?>?, bool?)

public static IField<bool?> CreateNullableBoolean(ISurface surface, string label = "", IValue<bool?>? prop = null, bool? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<bool?>
initialValue bool?

Returns

IField<bool?>

CreateNullableBoolean(ISurface, PrimitiveAttribute<bool?>)

public static IField<bool?> CreateNullableBoolean(ISurface surface, PrimitiveAttribute<bool?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<bool?>

Returns

IField<bool?>

CreateNullableCurrency(ISurface, string, IValue<decimal?>?, decimal?)

public static IField<decimal?> CreateNullableCurrency(ISurface surface, string label = "", IValue<decimal?>? prop = null, decimal? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<decimal?>
initialValue decimal?

Returns

IField<decimal?>

CreateNullableCurrency(ISurface, PrimitiveAttribute<decimal?>)

public static IField<decimal?> CreateNullableCurrency(ISurface surface, PrimitiveAttribute<decimal?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<decimal?>

Returns

IField<decimal?>

CreateNullableDate(ISurface, string, IValue<DateOnly?>?, DateOnly?)

public static IField<DateOnly?> CreateNullableDate(ISurface surface, string label = "", IValue<DateOnly?>? prop = null, DateOnly? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<DateOnly?>
initialValue DateOnly?

Returns

IField<DateOnly?>

CreateNullableDate(ISurface, PrimitiveAttribute<DateOnly?>)

public static IField<DateOnly?> CreateNullableDate(ISurface surface, PrimitiveAttribute<DateOnly?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<DateOnly?>

Returns

IField<DateOnly?>

CreateNullableDateTime(ISurface, string, IValue<DateTime?>?, DateTime?)

public static IField<DateTime?> CreateNullableDateTime(ISurface surface, string label = "", IValue<DateTime?>? prop = null, DateTime? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<DateTime?>
initialValue DateTime?

Returns

IField<DateTime?>

CreateNullableDateTime(ISurface, PrimitiveAttribute<DateTime?>)

public static IField<DateTime?> CreateNullableDateTime(ISurface surface, PrimitiveAttribute<DateTime?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<DateTime?>

Returns

IField<DateTime?>

CreateNullableDecimal(ISurface, string, IValue<decimal?>?, decimal?)

public static IField<decimal?> CreateNullableDecimal(ISurface surface, string label = "", IValue<decimal?>? prop = null, decimal? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<decimal?>
initialValue decimal?

Returns

IField<decimal?>

CreateNullableDecimal(ISurface, PrimitiveAttribute<decimal?>)

public static IField<decimal?> CreateNullableDecimal(ISurface surface, PrimitiveAttribute<decimal?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<decimal?>

Returns

IField<decimal?>

CreateNullableGUID(ISurface, string, IValue<Guid?>?, Guid?)

public static IField<Guid?> CreateNullableGUID(ISurface surface, string label = "", IValue<Guid?>? prop = null, Guid? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<Guid?>
initialValue Guid?

Returns

IField<Guid?>

CreateNullableGUID(ISurface, PrimitiveAttribute<Guid?>)

public static IField<Guid?> CreateNullableGUID(ISurface surface, PrimitiveAttribute<Guid?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<Guid?>

Returns

IField<Guid?>

CreateNullableInstant(ISurface, string, IValue<DateTimeOffset?>?, DateTimeOffset?)

public static IField<DateTimeOffset?> CreateNullableInstant(ISurface surface, string label = "", IValue<DateTimeOffset?>? prop = null, DateTimeOffset? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<DateTimeOffset?>
initialValue DateTimeOffset?

Returns

IField<DateTimeOffset?>

CreateNullableInstant(ISurface, PrimitiveAttribute<DateTimeOffset?>)

public static IField<DateTimeOffset?> CreateNullableInstant(ISurface surface, PrimitiveAttribute<DateTimeOffset?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<DateTimeOffset?>

Returns

IField<DateTimeOffset?>

CreateNullableInteger(ISurface, string, IValue<int?>?, int?)

public static IField<int?> CreateNullableInteger(ISurface surface, string label = "", IValue<int?>? prop = null, int? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<int?>
initialValue int?

Returns

IField<int?>

CreateNullableInteger(ISurface, PrimitiveAttribute<int?>)

public static IField<int?> CreateNullableInteger(ISurface surface, PrimitiveAttribute<int?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<int?>

Returns

IField<int?>

CreateNullableLong(ISurface, string, IValue<long?>?, long?)

public static IField<long?> CreateNullableLong(ISurface surface, string label = "", IValue<long?>? prop = null, long? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<long?>
initialValue long?

Returns

IField<long?>

CreateNullableLong(ISurface, PrimitiveAttribute<long?>)

public static IField<long?> CreateNullableLong(ISurface surface, PrimitiveAttribute<long?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<long?>

Returns

IField<long?>

CreateNullableString(ISurface, string, IValue<string?>?, string?)

public static IField<string?> CreateNullableString(ISurface surface, string label = "", IValue<string?>? prop = null, string? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<string>
initialValue string

Returns

IField<string>

CreateNullableString(ISurface, PrimitiveAttribute<string?>)

public static IField<string?> CreateNullableString(ISurface surface, PrimitiveAttribute<string?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<string>

Returns

IField<string>

CreateNullableText(ISurface, string, IValue<string?>?, string?)

public static IField<string?> CreateNullableText(ISurface surface, string label = "", IValue<string?>? prop = null, string? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<string>
initialValue string

Returns

IField<string>

CreateNullableText(ISurface, PrimitiveAttribute<string?>)

public static IField<string?> CreateNullableText(ISurface surface, PrimitiveAttribute<string?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<string>

Returns

IField<string>

CreateNullableTime(ISurface, string, IValue<TimeOnly?>?, TimeOnly?)

public static IField<TimeOnly?> CreateNullableTime(ISurface surface, string label = "", IValue<TimeOnly?>? prop = null, TimeOnly? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<TimeOnly?>
initialValue TimeOnly?

Returns

IField<TimeOnly?>

CreateNullableTime(ISurface, PrimitiveAttribute<TimeOnly?>)

public static IField<TimeOnly?> CreateNullableTime(ISurface surface, PrimitiveAttribute<TimeOnly?> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<TimeOnly?>

Returns

IField<TimeOnly?>

CreateString(ISurface, string, IValue<string>?, string?)

public static IField<string> CreateString(ISurface surface, string label = "", IValue<string>? prop = null, string? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<string>
initialValue string

Returns

IField<string>

CreateString(ISurface, PrimitiveAttribute<string>)

public static IField<string> CreateString(ISurface surface, PrimitiveAttribute<string> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<string>

Returns

IField<string>

CreateText(ISurface, string, IValue<string>?, string?)

public static IField<string> CreateText(ISurface surface, string label = "", IValue<string>? prop = null, string? initialValue = null)

Parameters

surface ISurface
label string
prop IValue<string>
initialValue string

Returns

IField<string>

CreateText(ISurface, PrimitiveAttribute<string>)

public static IField<string> CreateText(ISurface surface, PrimitiveAttribute<string> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<string>

Returns

IField<string>

CreateTime(ISurface, string, IValue<TimeOnly>?, TimeOnly)

public static IField<TimeOnly> CreateTime(ISurface surface, string label = "", IValue<TimeOnly>? prop = null, TimeOnly initialValue = default)

Parameters

surface ISurface
label string
prop IValue<TimeOnly>
initialValue TimeOnly

Returns

IField<TimeOnly>

CreateTime(ISurface, PrimitiveAttribute<TimeOnly>)

public static IField<TimeOnly> CreateTime(ISurface surface, PrimitiveAttribute<TimeOnly> prop)

Parameters

surface ISurface
prop PrimitiveAttribute<TimeOnly>

Returns

IField<TimeOnly>

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

surface ISurface
contentEditable bool
prop EntityCollectionProperty<T>

Returns

IField<IEntitySet<T>>

Type Parameters

T

IsInlineCollection(RelationshipInfo)

public static bool IsInlineCollection(RelationshipInfo propInfo)

Parameters

propInfo RelationshipInfo

Returns

bool