EFTable<T extends IModel> class
EFTable For If It Will Be A Table
Constructors
-
EFTable({required String tableName, List<
PropertyEnum> ? enumProperties, List<EFProperty< ? properties, required PrimaryKeyGetDelegate<T> >T> primaryKeyGet, required PrimaryKeySetDelegate<T> primaryKeySet, required NewEmptyObjectDelegate<T> newEmptyObject, PrimaryKeyEnum primrayKeyType = PrimaryKeyEnum.Default, FromMapFunc<T> ? fromMap, ToMapFunc<T> ? toMap, bool isAutoMap = true, bool isUseEnum = false, String primaryKeyName = "id", List<T> ? defaultValues})
Properties
-
defaultValues
↔ List<
T> ? -
defaultValues For Default Values Will Generate Just When First Time In DB
getter/setter pair
-
enumProperties
↔ List<
PropertyEnum> ? -
enumProperties If You Turn isUseEnum So You Need To It
getter/setter pair
-
fromMap
↔ FromMapFunc<
T> ? -
fromMap If You Turn
IsAutoMap
false So You Need To Assigngetter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- isAutoMap ↔ bool
-
isAuto
For If It Will Be Auto Mapgetter/setter pair - isUseEnum ↔ bool
-
isUseEnum For If You Some Times Use Enum
getter/setter pair
-
newEmptyObject
↔ NewEmptyObjectDelegate<
T> -
newEmptyObject For How Create New Instace From Object
getter/setter pair
-
primaryKeyGet
↔ PrimaryKeyGetDelegate<
T> -
primaryKeyGet For How To Get PrimaryKey
getter/setter pair
- primaryKeyName ↔ String
-
primaryKeyName The PrimaryKeyName You Can Just But Him Null For 'id' Name
getter/setter pair
-
primaryKeySet
↔ PrimaryKeySetDelegate<
T> -
primaryKeyGet For How To Set PrimaryKey
getter/setter pair
- primrayKeyType ↔ PrimaryKeyEnum
-
primrayKeyType For Type Of PK
getter/setter pair
-
properties
↔ List<
EFProperty< ?T> > -
properties For Properties
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tableName ↔ String
-
tableName For The TableName
getter/setter pair
-
toMap
↔ ToMapFunc<
T> ? -
toMap If You Turn
IsAutoMap
false So You Need To Assigngetter/setter pair
Methods
-
GetPropByEnum(
PropertyEnum prop) → EFProperty< T> - To Get Prop By Enum
-
GetPropByName(
String name) → EFProperty< T> - To Get Prop By Name
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ToMap(
T item) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited