Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a need to learn MVC 3 with the Razor view engine and Entity Framework 4, and am trying to figure out where to start.
Over a year ago, I build a site in MVC 2 and LINQ to SQL, but it's been a long time since I've thought about it at all and I've forgotten a lot. Though, I still have a loose understanding of routing, action links, and a bit of LINQ. So, I'm not exactly starting from scratch, but it feels like it.
I've been doing lots of digging around, in order to learn what I can, but have really only begun to feel a bit overwhelmed. I watched the videos on http://www.asp.net/mvc. While these certainly helped, there are still lots of holes in my knowledge.
In any case, here are some specific things I'm hoping you guys can help me find:
a good, hands-on MVC 3 tutorial (not unlike the nerd dinner tutorials that were available for MVC 2)
a clear explanation of Entity Framework 4, including coverage of
topics such as lazy loading and POCO objects
a clear explaination of LINQ, focusing on all of the extension
methods available, etc
resources that are NOT focused on code first models. I already have a
database that is in use (I'm not sure I see the value in code
first anyway)
Does anyone know of a resource or two that has these things?
There is also a very handy project which is already build, but who you can build by yourself with tutorials which will guide you through alot of MVC stuff.
http://www.asp.net/mvc/samples/mvc-music-store
Also I learned alot from the blogs from Stephen Walter: http://stephenwalther.com
Regarding EF, I recommend this book first
for EF4.1, this series of post by ADO.NET Team will help you
You still can use EF4.1 with Database First, refer this post and this post even though you already have database schema
if you dont mind spending a few bucks for a subscription based site (i think they do have a 10 day trial or 90 day if you qualify for dreamspark) the company i work for uses pluralsight for alot of our .net training they have a good chunk of mvc 3 videos that can help you out with getting going and have some more in depth stuff as well
i will up date this post tomorrow when i get to work with the page of information i gave to our mvc developers at work which has a ton of hour + videos and some great articles
also check out the following blogs for extra information
haacked.com
goodscottbadscott.com
scottgu's blog
Edit:
MIX 09 Demos
PDC 09 Demos
Phil Haack's Intro to Razor View Engine
MIX 11 Demos
MIX 11 ASP.net MVC 3 The time is now (recommended)
HTML5 Resources
Jquery
Jquery Mobile
Crystal Reports
I believe watching the PluralSight videos which are free and you can see them in www.asp.net/mvc (left corner ) is the essential step you can do.
Related
I’ve been using Yii since version 1 … I’ve done lots of projects (i’d say about 50). I know Yii.
But I am being disappointed.
Yii was glorious and wonderful in 2014-2017, but after 2018 I’m not seeing same activity.
Forums are useless, old, inactive … there’s not more Yii2 extensions or modules. Everything is “old”, unfinished, discontinued …
Now I’m facing changes in my life as coder, and I was wondering whether to wait for Yii3 (because it will be a revolution), or to switch to Laravel.
Sincerely… what do you think if this “Yii environment” situation ?
Please, I would like comments from people who really know both environments, not only Laravel lovers.
Can you anyone tell me a WORKING and UPDATED extension
for social networks that works PERFECTLY ?
yii2-usuario was the best … WAS … linkedin works sometimes, facebook are not updated, and there’s no newer social since 2016
can you tell me other for datatables ?
nullref has awful support since it’s everything rewritten in Javascript so you can’t access properly relations and subrelations of models
for payments (stripe compatible for example) ?
for…
and so on…
These just last 3 examples has beautiful, crazy updated and reviewed plugins in Laravel, for example. Or even in NodeJS.
2amigos and kartiv were two perfect partners for Yii2 core … but they are not being continued … so they are pretty old
Anytime I search for any “extension” in github, all projects are 4 years ago (the newest!).
By the way … Yii3 started in 2019 … 60% done so far … and can’t be used yet for real working projects in live. So … waiting 2 years more with this so empty market of extensions ?
Let’s be clear, my problem with Yii is NOT the core (Thank you Sam and others for your infinite work!), but the community, extensions made (and/or updated) and “movement” of the ecosystem.
I know I can code myself (i’ve done lots of extensions), but it’s easy as a coder when you have good repositories with pretty new extensions and solutions, and a very active community behind. This forum has about 150 posts this year. Laravel (for example, 150 posts represents just the last 4 days). Have you notice tons of posts here with 0 replies ?
Also, Yii coders was easy to find in 2015 … now it’s 1 out of 100 maybe.
Let’s assume Yii environment has decreased drastically in the last 4 years.
I would suggest to move to laravel.
As yii and laravel uses almost similar behavior on basic level
MVC, Based on symphony, ORM
I honestly think you'll easily grap what laravel is offering.
Plus, laravel is upgrading day by day.
The answer to your question lies in your question .
Big community, Wonderful documentation, Enjoyable coding, Lot of feature and package, Popularity and ... all of them can describe Laravel.
Do not doubt and take a deep dive.
If you worked with Yii2, you should definitely use Yii3.
I'm using it for minor projects and I'm learning a lot.
The advantages are the same as always
Very fast (surely faster than Laravel)
Very complete
Very customizable
Very standard and modern (A bit difficult to start to understand it)
I recommend you to start with the demo application (it's a blog) or the base application (blank)
What's with the packages?
That on Yii2 you can only use Yii2 - compatible packages? take any package and use it, use the dependency injection container.
If we talk about the fact that the framework is outdated, then yes there is such ...
I myself wrote more than a dozen projects on Yii2.
I didn't really like Larevel, my opinion.
But the symphony, on the contrary, I was very pleased with.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've been tasked with finding an open source CMS that can be integrated slowly into a set of existing websites. This way pages can be brought across to the CMS one by one with the site remaining live during the changeover.
Does anyone have any thoughts, experience or advice on what CMS solution would be suitable for solving the problem I've outlined above?
I've been trying out the various offerings for the last couple of days and have found the following options. But having very little experince of using a CMS it'd be really helpful to get other views on this from more experienced devs on what pit falls to avoid.
N2 CMS - A mature option, I've got this working but the documentation is really lacking. I've also found it difficult to find the minimum spec requirements for a database and also browser compatibility. I do however like the code structure for creating the template pages.
Phun CMS - this is a new open source project that I really like the look of in the way the programmer is approaching the problem and separating the concerns. It's probably far too new though to really look at at the moment.
Composite C1 - A mature CMS option, great documentation. However says that it only supports IE9+.
Umbraco - not tried yet but looks heavyweight
Piranha - not tried yet but nice website and documentation and also says that it's lightweight.
I'm the lead developer for Piranha CMS so maybe I can shed some light on what Piranha CMS is best at!
Our focus is content management and to have a transparent and lightweight API for developers. Piranha CMS has almost no components or helpers that render any HTML at all, it simply provides a database, a manager interface and a routing mechanism for retrieving the correct data for the current request.
In the case of you having an existing website you could actually bypass the routing completely, add one page at a time in the manager interface and then manually load the Page model in you existing page. This would allow you to keep your original application exactly the same but manage the content form the manager interface.
Hope you find the CMS you're looking for, and if you have any questions about Piranha feel free to contact me!
Another option of a full featured ASP.NET CMS is Orchard. But like all full featured CMS, you are stuck with initial learning curve about the CMS. You are also stuck with using that CMS once you are converted to it, so do all your research and basic site feature development before making the decision on CMS because it will be difficult once you are converted.
Phun CMS approach is different. Realizing that everyone site is customized, except for small things that you allow client to modify and do not need to get called in the middle of the night to make that modification, Phun CMS was born. Modern framework such as ASP.NET MVC already has all the CMS features: authentication, routing, razor templating/theming, etc... Phun CMS just provide a way to store your client dynamic content. You can still utilize everything you already know about ASP.NET MVC and Razor. But I'm also the Phun CMS author, so maybe my comment is (a bit, just a bit ;) biased on this topic.
If you want to go page-by-page I'd advise a setup where the new CMS tries to match all requests, if no match is found, instead of throwing a 404, redirect to the old instance (which can in turn return a generic 404 if needed).
I don't think this kind of solution is specific to any CMS, but check if you are able to modify the 404 page behaviour (really, you should in any mature CMS).
N2 CMS definitely fits the bill and it is particularly suited to integrating into an existing site bit-by-bit. It's lightweight and nice and responsive. It's also very developer friendly and doesn't force it's model on you.
The only problem is the one that you mention, that the documentation isn't the greatest so it's initially hard to get into. However, you'll find after that initial barrier it is very easy to get the hang of.
Newb here learning rails... any advice/comparison of community engine v. social stream? I'll be writing a dating site, so especially if either lends themselves to that development I'd appreciate the advice.
I have tried CommunityEngine in the old days. Currently to use it with rails3, you will have to use a specific branch mainly updated by the community to make it stable. i'm not sure if that rails3 branch is production ready yet.
I don't know community engine, but have been looking at social stream and it looks very well put together.
We upgraded social stream to a mobile platform by exposing api end points - it took a couple of months. We built separate controllers for each call rather than modifying the core classes. The platform is now flexible enough to cater for any use case and we can hook in to updates on the trunk. It's really well thought architecture and has had iterations of refactoring. (I think the webviews / javascript is a bit of a mess though)
I suggest you have a look at this - it took my tech lead a couple of weeks to be comfortable with this.
https://github.com/ging/social_stream/wiki/Social-Stream-Base-database-schema
WRT communityengine - I abandoned this over 4 years ago.
https://github.com/jdp-global/communityengine/commit/31f9b267706157a63bfc103a290bd6e3d874066a
Any platform you choose needs to have a focus on APIs / web services.
I am looking for a sample ASP.NET MVC3 N-Tier application that demonstrates best practices (uses Domain Driven Design and Entity Framework 4.1 Code first). I found the following. which one do you recommend out of these (or any other one not in this list)?
http://efmvc.codeplex.com/
http://prodinner.codeplex.com/
http://www.dofactory.com/Framework/Framework.aspx (not free)
I was in the same position not long ago.
The things you linked are OK, but certainly not enough on their own.
I find this topic lacking in the free resources, as it is quite big and needs good organization and breadth. On the other hand, there are good resources if you are willing to pay a little.
These are the resources I used:
PluralSight - training videos. ($30 per month, quite worth it, not affiliated, but a subsciber)
Here are the courses that are great on the topic:
Principles of Object Oriented Design - by Steve Smith, he is a great lector.
Design Patterns Library - over 10 hours of videos on design patterns. Can't compare them to DotFactory, but they are very well done.
Inversion of Control - what the name says, important topic in depth.
There are also lots of stuff on TDD, MVC, EF etc. All worthy topics.
Books on Kindle (I haven't been reading lots of books, but Kindle really revived my passion for written knowledge)
Professional Enterprise .NET
Microsoft® .NET: Architecting Applications for the Enterprise
Applying Domain-Driven Design and Patterns: With Examples in C# and .NET
Have you seen the following projects? They also have the source code that they can have complete documentation.
http://microsoftnlayerapp.codeplex.com/
http://www.nopcommerce.com
Best practices are always subjective. Your application may require DI and as well as Interceptors but sample apps are relatively small and putting anything into there turns out to be ridiculous. Still, I would suggest you to go through MVC Music Store. It has pretty good implementation and a very good sample.
http://mvcmusicstore.codeplex.com/
Although this post is old, But I have had same problem to find a good and modern pattern for a good ntier application. After I goggling for some hour, I Found Onion Architecture By Jeffrey Palermo. It is a must read article. here: jeffreypalermo.com/blog/the-onion-architecture-part-1/
By using this article and using some other researches I Made a template (Example) of this architecture that uses Entity Framework 6.0 and Ninject Dependency Injection 3.2.0
NTierCSharpExample
I this template: Center Layer Is Domain Layer. Then Service Layer that is a bridge between presentation and Data Layer.
For simplicity I used console app for presentation but you can simply remove it out and plug in a new asp.net mvc 5 application or any other presentation app you want.
Funny this kind of question comes up couple of times per week at least recently.
What I can say, only about the layering of the different projects, accordingly to my experience and feedback I've got, is to check question and my answer here:
MVC3 and Entity Framework
RKP this is not answering all and completely to your question, is about layering the architecture and some ideas on why only (see comments under my answer).
I make a good pattern based on EF 4.1 and MVC3:
MVC3 and EF architecture
good luck
I don't know whether this is right forum to ask about MVC3 Framework.
Actually my Project Manager asked me to do next project in MVC3 achitecture. I never worked even in MVC.
Can anyone help me to provide a tutorials link about MVC3?
Is it right to go with MVC3 without knowing about MVC?
Please help?
Well since you mention MVC 3 your manager probably means Microsoft ASP.NET MVC 3, and the perfect starting place to learn about ASP.NET MVC is www.asp.net/mvc
You will find a lot of helpful tutorials and video presentation that will help get you started.
It's actually quite easy ( = comfortable) to learn basics of ASP.NET MVC nowadays.
There are many great resources at www.asp.net/mvc.
I can also recommend videos from MIX events by Scott Hanselman. You can look for them in MIX archive (years 09-11) or at his site www.hanselman.com. He + guys like Scott Gu and Phil Haack did project called Nerddinner which was good starting point for beginners (during days of MVC1 and MVC2), because there are videos about it and also free ebook (you can get all at nerddinner.com - link is in footer), but its a bit aged now and there are already newer tutorials aiming newer versions of ASP.NET MVC3 directly at official ASP.NET MVC site.
So your best starting point for ASP.NET MVC3 really is the www.asp.net/mvc site and 1. Getting Started section ;) Read overview, start following the first tutorials (first ASP.NET MVC Applicaton and ASP.NET MVC Music Store). Then when you will get into troubles with something specific, you can come back here and ask again.
Steven Sanderson's book is actually the good one to start. Not only it explains MVC framework in depth, but provides comparison with other web frameworks and all the pros/cons it has got. After reading first chapters, you'll undestand why your project manager asked so :). The book is is mvc2 - so there're some points explained that are already old (WebForms view engine) but anyways, book gives good knowledge
i hope this one may be of help too.
http://kbochevski.blogspot.com/2011/06/architecting-loosely-coupled-mvcnet.html
You can follow some video tutorials on pluralsight. It's not that expensive and one month is quite enough.
There are also plenty of books that may help you during your learning process.
I would suggest this one
Pro ASP.NET MVC 3 Framework 3rd Edition
The official site for asp.net mvc has also some great tutorials
Lets start with what in my opinion is the best tutorial on ASP.NET MVC 3 and the Entity Framework 4.1. Go to
MVC Music Store
I have tried several tutorials and that one is the best. It comes with a PDF that leads you through the process. Next comes the razor view engine syntax, something you definitely need to learn. Here is a good book on Programming Razor
Programming Razor
You must learn the Razor syntax and the razor view engine to build ASP.NET MVC 3 websites.
Now that you have had an introduction, lets get down to it. First, a word of caution about one particular book on MVC 3
Pro ASP.NET MVC 3 Framework
This book has an excellent introduction to the MVC architecture and MVC design pattern, related design patterns and programming techniques. However, its tutorial is riddled with bugs and omissions. Basically, the CRUD code doesnt work. After you have ground through several chapters of code, you find that when you call SaveChanges(), nothing happens, not even an error. I downloaded the sample code and ran it and not even it works. Take that book with a grain of salt. It appears to have been released without proper editing and validation of the code. I am going to try to get my tokens back for downloading that book on safari.oreilly.com. The MvcMusicStore tutorial is a much better one and the code actually works.
Now we come to a book that pretty much nails programming ASP.NET MVC 3, Razor and the Entity Framework
Professional ASP.NET MVC 3
This book is based on the very good MVC Music Store tutorial and expands on it quite nicely. It will get you started much faster and has much better practical information for getting a well designed, complete MVC application up and running quickly. The Entity Framework code-first tutorial is excellent. It is also a short 450 or so pages but there is a lot packed in that book.
You may also want to spend some time learning the Entity Framework 4.1 and LINQ to Entities. The best book for that is Julie Lehrmans excellent book on LINQ and the Entity Framework
Programming Entity Framework, Second Edition
I am a n00b here so I cant post a link to that book. You can find it on safari.oreilly.com or go to programmingentityframework.com, Julie's website. I haven't had a chance to even look at ASP.NET MVC 4!