Skip to content

How to implement storageDatabaseForClass. #135

@ddferrando

Description

@ddferrando

I am trying to save a entity models in different databases depending on a user.
As per requirements in our app we need to maintain separate databases for each user with same entity models.
On user change I need to point to its user database.
I was making some tests with storageDatabaseForClass but I am not able to make it work.

In my SRKObject we implemented
+(NSString*)storageDatabaseForClass
{
return @"dataBase1"
}

I thought that system will create automatically a new dataBase, but I see it's not working properly.
Any suggestion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions