Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inject DataAccessor into Business Object #47

Open
DracoRSA opened this issue Nov 20, 2013 · 0 comments
Open

Inject DataAccessor into Business Object #47

DracoRSA opened this issue Nov 20, 2013 · 0 comments

Comments

@DracoRSA
Copy link

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)));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant