Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Boris 9 posts 49 karma points
    May 22, 2014 @ 20:59
    Boris
    0

    CodeFirst - creating document types, controllers and backend stuffs

    Hi,

    I am very new to the comunity and I am looking for good documentaiton about how to user CodeFirst approach - creating firstly document types in the VS project, how to create controller and map it to a document type? These really basic things.
    I just want from the very begining to start to work with some of my libraries.

    Very Thanks,
    Boris

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 22, 2014 @ 23:31
    Jan Skovgaard
    0

    Hi Boris

    I don't know much about code first in Umbraco however I know that those using it seem to be using the uSiteBuilder project, which is hosted here on codeplex http://usitebuilder.codeplex.com/

    But I'm not sure if it's compatible with v7 or not though.

    Hope this helps.

    /Jan

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    May 22, 2014 @ 23:56
    Jeavon Leopold
    0

    I think that Inception is the current favourite CodeFirst package for v7

    I would also recommend you read this blog post

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    May 23, 2014 @ 00:01
    Jeavon Leopold
    0

    There is also a uHangout video talking about Inception here

  • Lars-Erik Aabech 349 posts 1100 karma points MVP 7x c-trib
    May 23, 2014 @ 11:05
    Lars-Erik Aabech
    1

    There's also http://our.umbraco.org/projects/developer-tools/umbraco-codegen

    Might be best to compile it from github. I haven't released in a while.

    https://github.com/lars-erik/Umbraco.CodeGen

  • Ben Weeks 14 posts 35 karma points
    Aug 25, 2015 @ 10:32
    Ben Weeks
    0

    Hi all, I'd be interested to know what the current best practice is for code first development with Umbraco. For example, creating document types with v7.

  • Lars-Erik Aabech 349 posts 1100 karma points MVP 7x c-trib
    Aug 25, 2015 @ 11:24
    Lars-Erik Aabech
    0

    I think Code First in Umbraco is more or less dead.
    My package (CodeGen mentioned over) will lose support for it. But it does give you strongly typed models. It's just that you make them in the Umbraco UI.

    You can also use Ditto to work with more use-case oriented POCOs that you do "code first"ish. Although you won't generate anything in Umbraco with that one either. You'll have to map it up.

Please Sign in or register to post replies

Write your reply to:

Draft