Field class
namespace: Serenity.Data assembly: Serenity.Net.Entity
Base Field class
public abstract class Field : IFieldWithJoinInfo
Public Members
| name | description |
|---|---|
| AutoTextKey { get; } | Gets the automatic text key. |
| Caption { get; set; } | Gets or sets the caption. |
| ColumnAlias { get; } | Select as column alias. Can be equal to property name or name. |
| Criteria { get; } | Gets the criteria. |
| CustomAttributes { get; set; } | Gets or sets the custom attributes. |
| DefaultValue { get; set; } | Gets or sets the default value. |
| Expression { get; set; } | The expression (can be equal to name if no expression) |
| Fields { get; } | Gets the fields. |
| Flags { get; set; } | Gets or sets the flags. |
| ForeignField { get; set; } | Gets or sets the foreign field. |
| ForeignJoinAlias { get; set; } | Gets or sets the foreign join alias. |
| ForeignTable { get; set; } | Gets or sets the foreign table. |
| Index { get; } | Gets the index. |
| InsertPermission { get; set; } | Gets or sets the insert permission. |
| IsLookup { get; } | Gets if this field is one with a LookupInclude attribute or ID or Name field |
| Join { get; } | Gets the join. |
| JoinAlias { get; } | Gets the join alias. |
| MinSelectLevel { get; set; } | Gets or sets the minimum select level. |
| Name { get; } | Column name |
| NaturalOrder { get; set; } | Gets or sets the natural order. |
| Origin { get; } | Gets the origin. |
| PropertyName { get; set; } | Gets or sets the name of the property. |
| ReadPermission { get; set; } | Gets or sets the read permission. |
| ReferencedAliases { get; set; } | Gets or sets the referenced aliases. |
| Scale { get; set; } | Gets or sets the scale. |
| Size { get; set; } | Gets the size. |
| TextualField { get; set; } | Gets or sets the textual field. |
| Type { get; } | Gets the type. |
| UpdatePermission { get; set; } | Gets or sets the update permission. |
| abstract ValueType { get; } | Gets the type of the value. |
| abstract AsObject(…) | Gets the value of this row as an object. (2 methods) |
| virtual AsSqlValue(…) | Gets the value of this row as an SQL value. |
| Contains(…) | Creates a new "the Field CONTAINS mask" criteria |
| abstract ConvertValue(…) | Converts the value. |
| abstract Copy(…) | Copies the specified source. |
| CopyNoAssignment(…) | Copies the no assignment. |
| EndsWith(…) | Creates a new "the Field ENDS WITH mask" criteria |
| override Equals(…) | Determines whether the specified Object, is equal to this instance. |
| abstract GetFromReader(…) | Gets field value from a data reader. |
| override GetHashCode() | Returns a hash code for this instance. |
| GetTitle(…) | Gets the title. |
| In<T>(…) | Creates a new "the Field IN (values...)" criteria |
| abstract IndexCompare(…) | Compares the field values for two rows for an ascending index sort |
| IsNotNull() | Creates a new "the Field IS NOT NULL" criteria |
| IsNull() | Creates a new "the Field IS NULL" criteria |
| IsNull(…) | Determines whether the specified row is null. |
| Like(…) | Creates a new "the Field LIKE mask" criteria |
| NotContains(…) | Creates a new "the Field NOT CONTAINS mask" criteria |
| NotIn<T>(…) | Creates a new "the Field NOT IN (values...)" criteria |
| NotLike(…) | Creates a new "the Field NOT LIKE mask" criteria |
| StartsWith(…) | Creates a new "the Field STARTS WITH mask" criteria |
| override ToString() | Converts to string. |
| abstract ValueFromJson(…) | Deserializes this fields value from JSON |
| abstract ValueToJson(…) | Serializes this fields value to JSON |
| operator == | Implements the operator ==. (10 operators) |
| operator > | Implements the operator >. (10 operators) |
| operator >= | Implements the operator >=. (10 operators) |
| operator != | Implements the operator !=. (10 operators) |
| operator < | Implements the operator <. (10 operators) |
| operator <= | Implements the operator <=. (10 operators) |
Protected Members
| name | description |
|---|---|
| Field(…) | Initializes a new instance of the Field class. |
| CheckUnassignedRead(…) | Checks the unassigned read. |
| abstract GetIsNull(…) | Gets if the field value is null. |
| JsonUnexpectedToken(…) | Jsons the unexpected token. |
| virtual OnRowInitialization() | Called when [row initialization]. |
See Also
- interface IFieldWithJoinInfo
- Source: Field.CriteriaOperators.cs