Fix last build errors

This commit is contained in:
Nikolaj Geisle
2022-02-24 14:39:29 +01:00
parent 3bf2778803
commit 2009f7585b
93 changed files with 556 additions and 450 deletions

View File

@@ -6,12 +6,12 @@ namespace Umbraco.Cms.Infrastructure.Persistence.DatabaseModelDefinitions
{
public class ColumnDefinition
{
public virtual string Name { get; set; }
public virtual string Name { get; set; } = null!;
//This type is typically used as part of a migration
public virtual DbType? Type { get; set; }
//When DbType isn't set explicitly the Type will be used to find the right DbType in the SqlSyntaxProvider.
//This type is typically used as part of an initial table creation
public Type PropertyType { get; set; }
public Type PropertyType { get; set; } = null!;
/// <summary>
/// Used for column types that cannot be natively mapped.
@@ -21,15 +21,15 @@ namespace Umbraco.Cms.Infrastructure.Persistence.DatabaseModelDefinitions
public virtual int Seeding { get; set; }
public virtual int Size { get; set; }
public virtual int Precision { get; set; }
public virtual string CustomType { get; set; }
public virtual object DefaultValue { get; set; }
public virtual string ConstraintName { get; set; }
public virtual string? CustomType { get; set; }
public virtual object? DefaultValue { get; set; }
public virtual string? ConstraintName { get; set; }
public virtual bool IsForeignKey { get; set; }
public virtual bool IsIdentity { get; set; }
public virtual bool IsIndexed { get; set; }//Clustered?
public virtual bool IsPrimaryKey { get; set; }
public virtual string PrimaryKeyName { get; set; }
public virtual string PrimaryKeyColumns { get; set; }//When the primary key spans multiple columns
public virtual string? PrimaryKeyName { get; set; }
public virtual string? PrimaryKeyColumns { get; set; }//When the primary key spans multiple columns
public virtual bool IsNullable { get; set; }
public virtual bool IsUnique { get; set; }
public virtual string? TableName { get; set; }