DefaultDatabaseOverride property

Indicates the connection string name that should be used by ObjectFactory when operating with the data object in question. Overrides the default connection string name.

Namespace: ReFlex.Data namespace
Assembly: ReFlex.Data.dll

Syntax

public string DefaultDatabaseOverride = null;

Remarks

Default is null, default database connection will be used.

Examples

[RelationalInfo(DefaultDatabaseOverride = "MyConnectionString")]
public class Contact
{
    public int ContactID;

    [RelationalMemberInfo(Length = 50)]
    public string FirstName;

    [RelationalMemberInfo(Length = 50)]
    public string LastName;
}