none
where is system.data.entity.modelconfiguration

    Question

  • I am trying to do code first??

    Where is system.data.entity.model.configuration???    

    remember julie lerman fluent api video?? 

    should I reference data annotations too??

    IN my dbcontext class thanks  



    • Edited by wm_s Friday, October 14, 2011 9:31 PM
    Friday, October 14, 2011 9:29 PM

Answers

  • Hi wm_s;

    Question: remember julie lerman fluent api video??
        Code First Relationships Fluent API

    Question: should I reference data annotations too??
        Not if you are going to use Fluent API's. Code First’s fluent API provides you with a way to describe configurations imperatively, in code.

    Question: Do I need to add system.data.entity.infrastructure
        It contains classes that support core Entity Framework functionality. You would typically only interact with these types as the return value of
        an API call from a type in the System.Data.Entity namespace.
       
    Question: Is julie lerman's the best tutorial on this subject
        She is very good.
        Here are some videos on the Microsoft web site Julie give some of them.
        The ADO.NET Entity Framework...

     


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    • Marked as answer by wm_s Saturday, October 15, 2011 3:41 AM
    Saturday, October 15, 2011 3:35 AM

All replies

  • Hi wm_s;

    The namespace is System.Data.Entity.ModelConfiguration and you need to add a reference to the dll EntityFramework.dll to your project.

     


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    Saturday, October 15, 2011 2:46 AM
  • Do I need to add system.data.entity.infrastructure

    Is julie lerman's the best tutorial on this subject

    I want to create a repository class using fluent api

    Saturday, October 15, 2011 2:55 AM
  • Hi wm_s;

    Question: remember julie lerman fluent api video??
        Code First Relationships Fluent API

    Question: should I reference data annotations too??
        Not if you are going to use Fluent API's. Code First’s fluent API provides you with a way to describe configurations imperatively, in code.

    Question: Do I need to add system.data.entity.infrastructure
        It contains classes that support core Entity Framework functionality. You would typically only interact with these types as the return value of
        an API call from a type in the System.Data.Entity namespace.
       
    Question: Is julie lerman's the best tutorial on this subject
        She is very good.
        Here are some videos on the Microsoft web site Julie give some of them.
        The ADO.NET Entity Framework...

     


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    • Marked as answer by wm_s Saturday, October 15, 2011 3:41 AM
    Saturday, October 15, 2011 3:35 AM