| |
browse.develop.com
Browse.develop.com is a community that was established to collect and
organize valuable web information. Our technical staff have selected and
indexed information and courses that they feel will help you stay
current on best practices across the SDLC.
|
11 Articles match "Entity Framework"
See all articles with
"Entity Framework"
| The Latest from The Problem Solver | MORE | | Client side support with the ASP.NET Web API am using Entity Framework Code First here and the model and context look like this: 1: public class Product. With REST there is not a lot required on the client as far as sending requests goes. As long as you can send HTTP GET requests you are good to go and there are very few programming stacks that don’t allow for some form of doing that. Of course just doing an HTTP GET is going to give you some data back and you still have to understand that data but that is an application specific issue. 3: public int ProductID { get; set; }. 4: public string ProductName { get; set; }. 11: }. The Problem Solver - Tuesday, March 13, 2012 Client side support with the ASP.NET Web API am using Entity Framework Code First here and the model and context look like this: 1: public class Product. With REST there is not a lot required on the client as far as sending requests goes. As long as you can send HTTP GET requests you are good to go and there are very few programming stacks that don’t allow for some form of doing that. Of course just doing an HTTP GET is going to give you some data back and you still have to understand that data but that is an application specific issue. 3: public int ProductID { get; set; }. 4: public string ProductName { get; set; }. 11: }. The Problem Solver - Tuesday, March 13, 2012 Getting started with the ASP.NET Web API The ASP.NET Web API is a framework build on top of the core ASP.NET engine for creating REST services. And the WCF team has made a number of attempts at providing a REST framework in the past which where usable but less successful. The ASP.NET Web API should provide a far more flexible framework for building RESTful services. So first I need to create a Entity Framework model with the table definition. Some time ago I did a number of blog posts about the beta versions of the WCF Web API. Now this is much more that just a name change. 3: // GET /api/. 11: {. The Problem Solver - Friday, March 9, 2012 | | The Best from The Problem Solver | MORE | | Entity Framework 4.1 power tools For each table a 2 classes are generated, the first is the entity class itself. The second is a map class that defines the mapping between the entity and the database. Another thing I noticed was that the entities only have their collection properties marked as virtual. The other properties containing the entity data are not virtual. The EF team at Microsoft just release a first CTP of the EF 4.1 Power Tools making it even easier to do Code First development with an existing database. The only gotcha is you have to make sure the EF4.1 Adding Ef4.1 Enjoy! The Problem Solver - Thursday, May 19, 2011 Deploying SqlServerCe with an ASP.NET MVC application Using Entity Framework Code First together with SqlServerCe is a great way to work with small databases in ASP.NET MVC applications. have several web applications running on shared hosting sites where SqlServerCe is the database engine under the hood. Deploying is also quite easy. typically use the build in Publish Web option which works great over FTP. When using SqlServerCe you have to make sure you add the deployable dependencies. Forgetting those results in pretty clear error messages. However once that is done I always run into another issue. Enjoy! The Problem Solver - Tuesday, January 24, 2012 Windows Workflow Foundation futures and database access The fact that it uses plain old ADO.NET means it can use the asynchronous model of calling the database, something still very much missing from the Entity Framework today. Ron Jacobs showed a number of really cool new workflow features we can be expecting in the next version of Windows Workflow Foundation during the last PDC in Redmond and Tech-Ed Europe in Berlin. One of the new features he demonstrated where the activities we can use to load data from a SQL server database into our workflow. Most of the new features are really cool but the database activities are not. The Problem Solver - Saturday, November 20, 2010 | - Trying the WF ADO.NET Activity Pack CTP 1
Now there is nothing wrong with plain ADO.NET but with the current emphasis on Object Relational Mappers like the Entity Framework this seems a bit out of place. Recently the workflow team at Microsoft released a first CTP to the ADO.NET Activity Pack. In this blog post I am going to take a quick look at how to get started with these activities. First step is installing the activity pack. Download the setup MSI from [link] and run the installer. Note that the main assembly containing the activities is called Microsoft.Data.Activities.dll. public string CustomerId { get; set; }. The Problem Solver - Tuesday, April 27, 2010 - Client side support with the ASP.NET Web API
am using Entity Framework Code First here and the model and context look like this: 1: public class Product. With REST there is not a lot required on the client as far as sending requests goes. As long as you can send HTTP GET requests you are good to go and there are very few programming stacks that don’t allow for some form of doing that. Of course just doing an HTTP GET is going to give you some data back and you still have to understand that data but that is an application specific issue. 3: public int ProductID { get; set; }. 4: public string ProductName { get; set; }. 11: }. The Problem Solver - Tuesday, March 13, 2012 - Getting started with the ASP.NET Web API
The ASP.NET Web API is a framework build on top of the core ASP.NET engine for creating REST services. And the WCF team has made a number of attempts at providing a REST framework in the past which where usable but less successful. The ASP.NET Web API should provide a far more flexible framework for building RESTful services. So first I need to create a Entity Framework model with the table definition. Some time ago I did a number of blog posts about the beta versions of the WCF Web API. Now this is much more that just a name change. 3: // GET /api/. 11: {. The Problem Solver - Friday, March 9, 2012 - Getting started with the ASP.NET Web API
The ASP.NET Web API is a framework build on top of the core ASP.NET engine for creating REST services. And the WCF team has made a number of attempts at providing a REST framework in the past which where usable but less successful. The ASP.NET Web API should provide a far more flexible framework for building RESTful services. So first I need to create a Entity Framework model with the table definition. Some time ago I did a number of blog posts about the beta versions of the WCF Web API. Now this is much more that just a name change. 3: // GET /api/. 11: {. The Problem Solver - Friday, March 9, 2012 - Client side support with the ASP.NET Web API
am using Entity Framework Code First here and the model and context look like this: 1: public class Product. With REST there is not a lot required on the client as far as sending requests goes. As long as you can send HTTP GET requests you are good to go and there are very few programming stacks that don’t allow for some form of doing that. Of course just doing an HTTP GET is going to give you some data back and you still have to understand that data but that is an application specific issue. 3: public int ProductID { get; set; }. 4: public string ProductName { get; set; }. 11: }. The Problem Solver - Tuesday, March 13, 2012 - Deploying SqlServerCe with an ASP.NET MVC application
Using Entity Framework Code First together with SqlServerCe is a great way to work with small databases in ASP.NET MVC applications. have several web applications running on shared hosting sites where SqlServerCe is the database engine under the hood. Deploying is also quite easy. typically use the build in Publish Web option which works great over FTP. When using SqlServerCe you have to make sure you add the deployable dependencies. Forgetting those results in pretty clear error messages. However once that is done I always run into another issue. Enjoy! The Problem Solver - Tuesday, January 24, 2012 - Entity Framework 4.1 power tools
For each table a 2 classes are generated, the first is the entity class itself. The second is a map class that defines the mapping between the entity and the database. Another thing I noticed was that the entities only have their collection properties marked as virtual. The other properties containing the entity data are not virtual. The EF team at Microsoft just release a first CTP of the EF 4.1 Power Tools making it even easier to do Code First development with an existing database. The only gotcha is you have to make sure the EF4.1 Adding Ef4.1 Enjoy! The Problem Solver - Thursday, May 19, 2011 %>
85 Articles match "Entity Framework"
See all articles with
"Entity Framework"
| The Latest from DevelopMentor | MORE | | Reblogged: What should I learn to get started in.NET and web development? Entity framework basics. Getting started with Entity Framework. https://learninglineapp.com/courses/27/getting-started-with-entity-framework. '[ Note : I am reblogging this post which originally was posted to the LearningLine blog. Hope you all find it useful here as well]. recently had a conversation with someone who is looking to make a fresh start and become a developer (coming from other IT positions). The question they had was: What should I learn to get started in.NET and web development? How do I do that?” jQuery basics. Essential jQuery. Michael C. Kennedy's Weblog - Monday, May 6, 2013 Optimistic concurrency in MongoDB using.NET and C# That may be fine for bank transfers, but it typically falls down in the face of disconnected models used by almost all ORMs such as Entity Framework. Frameworks such as Entity Framework have optimistic concurrency control built in (although it may be turned off). Basically there are three steps: Get an entity from the DB and disconnect. The only thing you need to do to use this library in your apps is to implement this interface on all top-level MongoDB entities and use a class derived from ConcurrentDataContext (in library below) for your data access. Michael C. Kennedy's Weblog - Monday, April 8, 2013 | -
| The Best from DevelopMentor | MORE | - Entity Framework 5 + Enumerations => What’s not to love?
Entity Framework 5 now supports enumerations (when using Visual Studio 2012 and targeting the.NET 4.5 framework). Next we’ll generate an entity data model from the database. Using enumerations with Entity Framework 5. We need to change the type of the ‘Habitable’ column in the database to a tinyint and we need to modify the information in the conceptual schema to inform the entity framework of our change in design: The screenshot shows that we need to change the underlying type as well as check the “Set Flags attribute”. DevelopMentor Courses - Sunday, September 2, 2012 - Entity Framework 5 is available
Entity Framework 5 is included in Visual Studio 2012, but is also available to users of Visual Studio 2010 (as a NuGet package: [link] ). Note: Some Entity Framework 5 features are only available when writing an application that targets.NET 4.5. Entity FrameworkThis includes enum support, spatial data types, table-valued functions and the performance improvements. Read more about what is new on the MSDN ADO.NET blog: [link]. DevelopMentor Courses - Sunday, August 26, 2012 - Reporting using Entity Framework
Technologies like Entity Framework help us convert data in the database to.NET objects and add logic. 39: Next step is to create a WCF service application, add an Entity Framework model and drag the two views onto the model: Next we’ll implement two methods to use the Entity Framework model to select the data and return a list of CustomerView or OrderView objects. For many years the mantra for implementing business logic in your line of business application has been: “don’t put it in the database, don’t put it in the user interface”. Life is good. The Blomsma Code - Wednesday, October 20, 2010 - Type-Safe Include extension method for Entity Framework
If you’re interested in the Include method in a LINQ to Entities queries to be type-safe, then Joe Ferner has the answer for you in this post: Type-Safe Entity Framework Include: [link]. Entity Framework DevelopMentor Courses - Tuesday, January 24, 2012 - Generating an index in the database using Entity Framework Code First
If you’re using Entity Framework Code First, then you may want to create an index on some of your table. Entity FrameworkThe way to do this is to call “Database.ExecuteSqlCommand” in the “Seed” method of your database initializer. The sample below shows how it is done (thanks to Rolf for pointing me in the right direction): using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Entity; using System.ComponentModel.DataAnnotations; namespace CodeFirstPlayground. {. class Program. {. static void Main( string [] args ). {. DevelopMentor Courses - Tuesday, January 17, 2012 %>
| | |