Skip to content

Updated CoreData Example #84

Open
Open
@waltermvp

Description

@waltermvp

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"]
    }
       
}

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