loganwright/Genome

Updated CoreData Example

waltermvp opened this issue · 0 comments

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