Results 1 to 5 of 5

Thread: ApplicationEntities Class

  1. #1
    EBN
    EBN is offline C# Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Nov 2016
    Posts
    3
    Rep Power
    0

    ApplicationEntities Class

    Does anyone know where I can get details on the ApplicationEntities class and in what library it resides?

  2. #2
    jmcilhinney is offline C# Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2011
    Posts
    1,437
    Rep Power
    116
    If it is what I think it then you can't get details on it and it doesn't reside in any library. Are you using - or looking at an example that is using - the Entity Framework? If so then that class is generated in your project for your project based on your data. You're going to have to provide more information on what you're actually doing and why you think you need that class if you want more specific information on what to do about it.

  3. #3
    EBN
    EBN is offline C# Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Nov 2016
    Posts
    3
    Rep Power
    0
    I believe you are correct that it is part of the entity framework. The actual code is:

    using (ApplicationEntities context = new ApplicationEntities())
    {
    var temp1 = context.states_lookup;
    var temp2 = temp1.Take(10).Select(x => x.state_id);
    var temp3 = temp1.ToList();
    var temp4 = temp1.Count();
    var temp5 = temp4 + temp2.Count();
    }
    Last edited by jmcilhinney; 11-17-2016 at 5:02 PM. Reason: Fixed code formatting.

  4. #4
    jmcilhinney is offline C# Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2011
    Posts
    1,437
    Rep Power
    116
    So, are you clear on what to do now or do you need more help in using EF?

  5. #5
    EBN
    EBN is offline C# Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Nov 2016
    Posts
    3
    Rep Power
    0
    Will need to take a look at EF but I cannot do it now. Leaving for the Holiday. Thanks you so much for your help. Have a great Thanksgiving.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •