Skip to content

Inject DataAccessor into Business Object #47

@DracoRSA

Description

@DracoRSA

Change the following code to use the injected DataAccessor in BusinessObject

    private static IDataAccessor GetDataAccessor()
    {
        return BORegistry.DataAccessor;
    }

The relationships also needs to use the injected DataAccessor. See code snippet below:
public RelationshipCol Relationships
{
get
{
return (RelationshipCol) (_relationshipCol
?? (_relationshipCol = ((ClassDef) _classDef).CreateRelationshipCol(_boPropCol, this)));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions