Appearance
GetOrCreate Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
TableInfo GetOrCreate(Type type, ISqlGenerator generator, string schema = null, TableInfoOptions options = null, bool forceRefresh = null)
csharp
TableInfo GetOrCreate(Type type, ISqlGenerator generator, string schema = null, TableInfoOptions options = null, bool forceRefresh = null)Generate a TableInfo object by reflecting a Type and its properties.
Remarks
Mapped properties are validated for database hydration. Unsupported shapes (for example, expression-bodied primary keys or get-only non-key columns) throw InvalidOperationException here so they fail during development. See docs/entity-poco-binding.md in this assembly.