Can't see this email? View it in your browser.
DotNet Weekly
Liquid Newsletter Template Week:30
Year:2014
Date:2014-Jul-22
Visit Our Site
Your weekly .NET update

Articles we enjoyed

ASP.NET MVC 5 Identity: Extending and Modifying Roles
In a recent article I took a rather long look at extending the ASP.NET 5 Identity model, adding some custom properties to the basic IdentityUser class, and also some basic role-based identity management. We did not discuss modifying, extending, or working directly with Roles, beyond seeding the database with some very basic roles with which to manage application access. Extending the basic ASP.NET IdentityRole class, and working directly with roles from an administrative perspective, requires some careful consideration, and no small amount of work-around code-wise.

Read more

How To Refactor for Dependency Injection, Part 3: Larger Applications
Dependency injection is a programming paradigm that enables you to write much more maintainable code by promoting loose coupling of objects. (In case you've missed them, this article is a continuation of Part 1 and Part 2 in my series on dependency injection. ) In a new or small application, refactoring to dependency injection is relatively straight forward. As the application to be refactored grows larger, however, it can become quite the undertaking. Fortunately, there's a way to simplify the problem and refactor your application piece by piece.

Read more

Creating Cool WPF Charts using the ModernUI Chart Library and WebAPI
A picture is worth a thousand words! When working with business applications, a major challenge is to present data in a graphical form that is not only accurate, but also easy to interpret. Charts are a popular medium of presenting data and results graphically and it becomes the responsibility of the team to make use of the most suitable technology and chart type, which can be data bound to a variety of data sources.

Read more

Understanding ASP.NET Templates
If you are in the business to display data on the web using ASP.NET, you probably used templates. All data bound controls, which used to display tabular data (like TreeView, DataList, GridView, Repeater and ListView) use template to make your work easier. You define the template only once and the data-binding mechanism will repeat it for each and every row of the data for you. This idea works with great efficiency, but there is a little misunderstanding when it comes to access the controls inside the data rows using the ID of the template. It can be confusing as you only declared one control with that ID, but now there are tens (hundreds or thousands) of repetitions of the same block. What can make it more confusing is the rendering of the repeated IDs to the client; as a web developer you probably aware of the fact that in HTML ID must be unique...

Read more

What To Do When SaveChanges() Fails?
Beginners often ask this question - "What course of action should I take when a call to SaveChanges() fails?" The answer may vary based on a given situation and requirement. However, in many cases the following course of actions can be performed: Trap the exception caused by the failed call to SaveChanges(). Find out all the errors that occurred during the SaveChanges() call. Find out which entities caused the errors. Either display the errors and entities causing errors to the user or log that information somewhere. Based on whether an entity was added, modified or deleted rollback its effect.

Read more

Scaling Your Web Application with Azure Web Sites
Surprisingly, scale is an often overlooked aspect of Web application development. Typically, the scale of a Web application becomes a concern only when things starts to fail and the UX is compromised due to slowness or timeouts at the presentation layer. When a Web application starts exhibiting such performance deficits, it has reached its scalability point—the point at which lack of resources, such as CPU, memory or bandwidth, rather than a logical bug in the code, hampers its ability to function.

Read more

Building a Node.js and MongoDB Web Service
The cloud is neutral to all languages. In the cloud, it shouldn’t matter whether the apps you run are Node.js, ASP.NET, Java or PHP, because the cloud provides a ready-made infrastructure for running them. The religion of the cloud is agility, and agility allows you to implement new ideas quickly and sunset the ones that don’t work in the marketplace

Read more

Videos we favorited

Twenty C# Questions Explained

Are you a developer with coding questions? Many new and experienced developers visit Stackoverflow.com to find solutions and to help others resolve their computing questions and issues. This training session focuses on 20 of the top questions surrounding the C# language, based on number of views and votes on stackoverflow. Watch this session, and get your questions answered.

Read more

Creating a multi-platform app and Intro to Azure Mobile Services

Creating a multi-platform app and Intro to Azure Mobile Services

Read more

Follow us: Facebook Facebook Twitter Twitter
/* DotNet Weekly */

Email: info@dotnetweekly.com

Unsubscribe here
Footer