Table of Contents

Class SqlDatabaseFileGroup

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a file group for a SQL server database.

public class SqlDatabaseFileGroup : BaseTypeSection, IComparable<SqlDatabaseFileGroup>
Inheritance
SqlDatabaseFileGroup
Implements

Constructors

SqlDatabaseFileGroup()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.SqlDatabaseFileGroup class.

public SqlDatabaseFileGroup()

Properties

AutogrowAllFiles

Gets or sets whether to autogrow all files. This applies to on-premises SQL Server 2016 and above.

public BooleanOption AutogrowAllFiles { get; set; }

Property Value

BooleanOption

DataFiles

Gets or sets the data files in the filegroup.

public SqlDataFiles DataFiles { get; set; }

Property Value

SqlDataFiles

FileGroupType

Gets or sets the file group type.

public SqlDatabaseFileGroupType FileGroupType { get; set; }

Property Value

SqlDatabaseFileGroupType

FileGroupTypeString

Gets the file group type as a human readable string.

public string FileGroupTypeString { get; set; }

Property Value

string

IsDefault

Gets or sets whether the file group is the default.

public BooleanOption IsDefault { get; set; }

Property Value

BooleanOption

Name

Gets or sets the name of the file group.

public string Name { get; set; }

Property Value

string

ReadOnly

Gets or sets whether the filegroup is read-only.

public BooleanOption ReadOnly { get; set; }

Property Value

BooleanOption

Methods

Clone()

Returns a CENTREL.XIA.Configuration.Types.SqlDatabaseFileGroup cloned from this object.

public SqlDatabaseFileGroup Clone()

Returns

SqlDatabaseFileGroup

A CENTREL.XIA.Configuration.Types.SqlDatabaseFileGroup.

CompareTo(SqlDatabaseFileGroup)

Compares two CENTREL.XIA.Configuration.Types.SqlDatabaseFileGroup objects to allow sorting alphabetically by name.

public int CompareTo(SqlDatabaseFileGroup other)

Parameters

other SqlDatabaseFileGroup

The CENTREL.XIA.Configuration.Types.SqlDatabaseFileGroup to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.SqlDatabaseFileGroup objects.