kpbode / CoreDataDSL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CoreDataDSL

This is an experiment - for now.

NSManagedObjectModel *model = buildCoreDataModel(

  withEntities(
    Entity(@"Book").withAttributes(
      Attribute(@"title").withType(NSStringAttributeType), nil
    ),

    Entity(@"Page"),
    nil
  ),

  withRelationShips(
    RelationShip(@"pages").from(@"Book").to(@"Pages"), nil
  ),

  nil
);

About

License:MIT License


Languages

Language:Objective-C 99.2%Language:Ruby 0.8%