I am a big fan of EntitySpaces, a .NET ORM framework that I find very easy to use. When the developers upgraded the framework in 2010, they "broke" some things I used in my code. Specifically, they changed the way instantiate a new ORM entity. Entities used to have a method that looked like this... … Continue reading How to Troubleshoot Problems Upgrading an Existing App from EntitySpaces 2009
Programming How-To Archive
How To Get Values from a DataTable without Crashing if a Column Doesn’t Exist
The Situation You have uploaded data into a DataTable (perhaps from a CSV file - see How To Parse a CSV File Into a DataTable for Use In Your Code) and now you need to retreive the data from the DataTable. BUT because the data has come from an uploaded from a CSV file, it … Continue reading How To Get Values from a DataTable without Crashing if a Column Doesn’t Exist
How To Parse a CSV File Into a DataTable for Use In Your Code
The situation: You have uploaded a CSV file, and you now need to do something with the data in your programming. A Solution:
DotNetNuke Module Development – How To Access User Profile Properties
The situation: You need to access user profile properties in a custom DNN module for display or perhaps pre-filling a form. Here's how I handled it recently: I created a method to retrieve the profile property of interest. I could have accessed the property directly, but I wanted to customize what came back and to … Continue reading DotNetNuke Module Development – How To Access User Profile Properties
Common Function Library – HasValue()
Like many programmers, I have a Common Function Library containing generic methods I use over and over again. Here is one of them. I use this often to test if a variable or object exists and if it has any value. This is an easy way to avoid NullReferenceExceptions or other errors that would crop … Continue reading Common Function Library – HasValue()