Let’s learn all about what MVVM is through practical examples.
(more…)
Category: ASP.NET
-
MVVM Pattern – Model View View Model
-
The specified type member is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported
This morning I was writing an Entity Framework query where I was selecting an object from a model called Invoice to a table called NetsuiteErrorLog. This previously used to be an actual relationship in my EDMX; however, I needed to do some refactoring and remove the direct foreign key from Invoice to NetsuiteErrorLog. When I did this I needed to add a new partial property that mimicked this relationship. When I did that and tried to perform my query I received the generic error:
The specified type member ‘NetsuiteErrorLog’ is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported -
String Extract Extension Method with C#
The following extension method is probably one of my all time favorite things to do with strings: parse out text between a start and end delimiter.
-
Switching from App session to SQL session state
When you have a single web server, storing the user sessions on the single server works perfect; however, when you have multiple web servers and users need to potentially round robin between servers or you need to remove servers from the pool and don’t want to affect your user’s experience enter: SQL Session State.
-
IIS Start Mode Always Running
When I first started working with IIS again after working with PHP for so long, I struggled to accept the 20-30 second load time when the website’s AppPool is not running. Here is a nice quick little fix to keep your important websites always running.