Skip to content

TableInfoOptions Class ​

Definition ​

Configuration options when deriving a TableInfo instance from a CLR Type

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Constructors ​

NameDescription
TableInfoOptions(ColumnDeclarationMode columnMode = null, bool ignoreDataAnnotations = null, bool includePrivateProperties = null, NamingStrategy namingStrategy = null, bool noCache = null)Create an instance TableInfoOptions

Fields ​

NameDescription
CacheKeyCache key for TableInfoOptions signature

Properties ​

NameDescription
ColumnModeDetermines how columns are defined when mapping a class to TableInfo.
IgnoreDataAnnotationsWhen true, all Data Annotation attributes (e.g., RequiredAttribute, StringLengthAttribute) are ignored during column inference.
IncludePrivatePropertiesIndicates whether non-public (private/protected/internal) properties should be included in column mapping.
NamingStrategySpecifies the naming strategy to use when generating table and column names from class and property names.
NoCacheDp not leverage memory cache

Methods ​

NameDescription
string ToJson()Returns a JSON string representation of the instance