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

Updated CoreData Example #84

Open
waltermvp opened this issue Mar 17, 2017 · 0 comments
Open

Updated CoreData Example #84

waltermvp opened this issue Mar 17, 2017 · 0 comments

Comments

@waltermvp
Copy link

waltermvp commented Mar 17, 2017

I'm not sure exactly how to use Genome with core Data. Am I missing something here? How do they get initialized?

How do I fetch or init it?

public class Todo: ManagedObject {
    
    init(map: Map, context: Context) throws {
        try checked ~> map["checked"]
        try id ~> map["id"]
        try text ~> map["text"]
    }

    public override func sequence(_ map: Map) throws {
        try checked ~> map["checked"]
        try id ~> map["id"]
        try text ~> map["text"]
    }
       
}
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