Contents tagged with .NET
-
.NET and SMTP Configuration
Sometimes I feel stupid about discovering .NET features that have been there since an old release (2.0 in this case)...
-
Visual Studio 2010 tip: Cut empty lines
How many times you wanted to move 2 lines by cut and pasting them, but the line you cut last is actually a blank line and your actual code is removed from the clipboard? Visual Studio 2010 has an option that keeps cutting blank lines from overwriting the clipboard. Go and uncheck this one: Tools » Options » Text Editor » All Languages » General » Apply Cut or Copy commands to blank lines when there is no selection
-
Generically correcting data before save with Entity Framework
Been working with Entity Framework (.NET 4.0) for a week now for a data migration job and needed some code that generically corrects string values in the database. You probably also have seen things like empty strings instead of NULL or non-trimmed texts ("United States ") in "old" databases, and you don't want to apply a correcting function on every column you migrate.