Table of Contents

Class DataMaintenanceEntity

Namespace
PHCDataLayer
Assembly
PHCDataLayer.dll
public class DataMaintenanceEntity
Inheritance
DataMaintenanceEntity

Properties

Connection

public DbConnection Connection { get; set; }

Property Value

DbConnection

EntityStructure

public VOStructure EntityStructure { get; set; }

Property Value

VOStructure

MaintenanceEntity

public IMaintenanceEntityInfo MaintenanceEntity { get; set; }

Property Value

IMaintenanceEntityInfo

Success

public bool Success { get; set; }

Property Value

bool

TableWasCreated

public bool TableWasCreated { get; set; }

Property Value

bool

Methods

AfterMaintenance()

public virtual bool AfterMaintenance()

Returns

bool

BeforeMaintenance()

public virtual bool BeforeMaintenance()

Returns

bool

BeginMaintenance()

public bool BeginMaintenance()

Returns

bool

EndMaintenance()

public bool EndMaintenance()

Returns

bool

ExecuteAfter()

public bool ExecuteAfter()

Returns

bool

ExecuteBefore()

public bool ExecuteBefore()

Returns

bool

ExecuteIn()

public bool ExecuteIn()

Returns

bool

ExistTable()

public bool ExistTable()

Returns

bool

ExistTable(VOStructure)

public bool ExistTable(VOStructure strucItem)

Parameters

Nome Tipo Descrição
strucItem VOStructure

Returns

bool

ExistTable(string)

public bool ExistTable(string tableName)

Parameters

Nome Tipo Descrição
tableName string

Returns

bool

ExistTable(Type)

public bool ExistTable(Type entityType)

Parameters

Nome Tipo Descrição
entityType Type

Returns

bool

ExisteFieldInDatabase(string)

public bool ExisteFieldInDatabase(string fieldName)

Parameters

Nome Tipo Descrição
fieldName string

Returns

bool

ExisteFieldInStructure(string)

public bool ExisteFieldInStructure(string fieldName)

Parameters

Nome Tipo Descrição
fieldName string

Returns

bool

GetDatabaseFieldsStructure()

public List<DbFieldsStruc> GetDatabaseFieldsStructure()

Returns

List<DbFieldsStruc>

GetDatabaseRevision()

public string GetDatabaseRevision()

Returns

string

GetEntityRevision()

public string GetEntityRevision()

Returns

string

GetFieldFromDatabase(string)

public DbFieldsStruc GetFieldFromDatabase(string fieldName)

Parameters

Nome Tipo Descrição
fieldName string

Returns

DbFieldsStruc

GetFieldFromStructure(string)

public FieldStructure GetFieldFromStructure(string fieldName)

Parameters

Nome Tipo Descrição
fieldName string

Returns

FieldStructure

GetFieldsStructure()

public List<FieldStructure> GetFieldsStructure()

Returns

List<FieldStructure>

GetFieldsStructure(Type)

public List<FieldStructure> GetFieldsStructure(Type entityType)

Parameters

Nome Tipo Descrição
entityType Type

Returns

List<FieldStructure>

GetFileData(string)

protected StreamReader GetFileData(string fileName)

Parameters

Nome Tipo Descrição
fileName string

Returns

StreamReader

InMaintenance()

public virtual bool InMaintenance()

Returns

bool

RemoveObsoleteFields()

public bool RemoveObsoleteFields()

Returns

bool

ShouldRunMaintenanceStep(string)

public bool ShouldRunMaintenanceStep(string code)

Parameters

Nome Tipo Descrição
code string

Returns

bool