コード例 #1
0
 /// <summary>
 /// Adds owner entity link, full auditing fields and tenant ID to a table. See <see cref="FullPowerChildEntity"/>.
 /// </summary>
 public static ICreateTableColumnOptionOrWithColumnSyntax WithFullPowerChildEntityColumns(this ICreateTableWithColumnSyntax table, bool indexCreatedByUserId = false, int ownerIdSize = 40)
 {
     return(table
            .WithMultipleOwnerColumns(ownerIdSize: ownerIdSize)
            .WithAuditColumns(indexCreatedByUserId)
            .WithDeletionAuditColumns()
            .WithTenantIdAsNullable());
 }