Entity framework code generation tool - asp.net

I have used Subsonic ORM in ASP.NET. It has Scaffold user control that generates web forms for list/insert/edit/delete etc.
I want to know is there anything like this in ASP.NET Entity Framework?

You can try ASP.Net Dynamic Data. Its quite nice and provides good scaffolding support.

Related

How to work with database in ASP.NET?

I am a PHP web developer. Now I want to work with ASP.NET but it's very difficult for me to work with databases in ASP.NET. I need some source link from where I can easily learn ASP.NET.
A good start is the homepage of ASP.NET:
http://www.asp.net/.
It includes a section on how to work with Entity Framework which is an object relation mapper for SQL Server databases.
For WebForms there's a nice tutorial here.
Please follow the template for asking questions.
Since you have asked , ASP.NET has flexible options of connecting/working with databases or you can write code using ADO.NET classes as well. I believe below links will provide a better understanding of working with databases in asp.net.
w3schools - ASP.NET working with database
MSDN
if you search you will find lot of sources over the web,but i recommend you to start with some basic topics , below are some topics with which you should start with :
.Net Framework basics
ASP.Net Page life Cycle
Viewstate
Data Controls
ADO.Net
Basic CRUD Operations on ASP.net Pages(CRUD =
Create,Retrieve,Update,Delete)
Caching in Asp.net
Cookies Management
in Addition C# & VB are most often used languages with .Net Framework , you Can start with C# basics.
below is the link that will give you basic walkthrough
Basic ASP.NET Walkthroughs

ASP.Net Identity using DevExpress ORM instead of Entity Framework

I'm implementing ASP.Net Identity for my MVC web application.
Could someone profide hints on how to use DevEx ORM and not Entity Framework?
Thanks in advance.
I got this answer from DevEx team:
Hi Muris,
ASP.NET Identity Framework is highly dependable on the Entity Framework, therefore it is required to write a lot of custom code to utilize it with other ORM. What we plan to do in the context of the Add support for VS2013 authentication modes ticket is to support selecting the ASP.NET Identity as an authentication provider when creating a new project using the Project Wizard. Since our Project Wizard uses Entity Framework as a data provider, we will also use it to support the ASP.NET Identity authentication.

Can I use validation feature of Entity Framework in ASP.NET WEB FORMS

Can I use Entity Framework DbContext, Code First approach, Data Annotation validation and customize validation in ASP.NET Web Forms?
You can use Data Annotations present in System.ComponentModel.DataAnnotations with ASP.NET WebForms but only with the new ASP.NET 4.5.
Check this awesome tutorial for complete details:
What's New in Web Forms in ASP.NET 4.5
Exercise 2: Data Validation
There's also a NugGet package that seems to do what you want:
Data Annotations Validator Control for ASP.NET Web Forms
I believe this will be supported in ASP.NET 4. But in the mean time, you can use xVal for WebForms. There are examples and a demo available online.
(disclaimer: this is one of my open source projects)

Data Annotation Validators with Asp.net Web Form and differences with MS Enterprise Library Validation Block

I use Asp.net 4 and C# in Web Forms with Entity Framework 4.
I need cross cutting Validation for my Entities on the business layer and on the presentation layer.
I read about Data Annotation Validators on MVC, and I think could be a reasonable solution for my web app.
I would like to know if is possible implement it even with Web Forms without many workarounds.
Also I would like to know the main difference with Enterprise Library Validation Block.
Many thanks

Asp.net MVC Question regarding n-tier

I have studied a lot of starter kits for ASP.NET and ASP.NET MVC really is awesome compared to web forms, because it runs fast and developement is easy. But when I fit ASP.NET MVC, LINQ in a site with a lot of visitors and mostly controls based website, I got so many issues in my mind.
Let's say I want to build a website which is small scale, but got a lot of visitors and mostly controls based (i.e. TV Show Information website). You've got shows, episodes.
Is it efficient and easy when you use n-tier architecture in ASP.NET MVC?
Should I create my own entities in Business Logic Layer or use SQL Tables as entities?
Should I use Application Cache in it to save all shows in cache?
I like the Presentation Layer of MVC using LINQ but when it comes to DataAccess and BusinessLogic its confusing me. Can anyone help?
My 2 cents:
In my opinion there is no difference between using ASP.Net MVC or Web Forms in an N-Tier architecture. We use WCF to comunicate between tiers.
We create Data Transfer Objects that are not the Entity Framework Entities. However, I expect this to change with the next version of Entity Framework which introduces POCO.
Not sure what you mean by "shows". ASP.Net has its own caching for pages, for caching data you could use Enterprise Library.
Just to clarify I define a Tier as a separate machine, where as a layer would be a separate dll.
i've just read an amazing article regarding working n-tier with asp.net mvc
check it out:
http://www.codeproject.com/KB/aspnet/ASP_NET_MVC_WITH_EF.aspx
it's all about right architecture working with ASP.NET MVC Framework + N-tier + Entity Framework
enjoy!
:-Dan
I highly recommend the NerdDinner ASP.NET MVC Tutorial. You can get more info on it and download the free chapter from ScottGu's blog post here.
In the code that accompanies that sample chapter there is a pretty good architecture structure that you can use to base your architecture on. I have gone back to it several times when trying to see how to architect something in ASP.NET MVC.
Have you built your first application in ASP.NET MVC yet, or are you still studying?
I think you should start with an architecture similar to NerdDinner and refactor after you become more familiar with how ASP.NET MVC works.
If you really are well versed in multi-tier, then you should be able to figure it out without help from us. Try some things. Do what works. Try not to worry so much about being "correct."
Some of what you are asking in your question is premature if you haven't written your first ASP.NET MVC application yet.
By the way, I found Scott Hanselman's "File/New/NerdDinner" video both enlightening and entertaining: http://videos.visitmix.com/MIX09/T49F
I use my own flavor of n-Tier with MVC because I don't like LINQ-to-SQL and the Entity Framework. I've also written some T4 templates that generate those objects and the use the Enterprise Library to interact with the DB. It's up to you, whatever works.

Resources