July 2011 Entries
I was investigating techniques to do auditing and think this is going to fit my needs, thought I would share. . . .
Let me start by saying there are about 1000 examples similar to this on the web. However none of the examples I found meet my specific requirements.
First lets discuss the requirements:
I need to be able to apply auditing to only some of the types in my system
I need to be able to ignore some of the properties on a type (i.e. not audit them)
...
I had a great time at the event today and wanted to thank a few folks that helped make this event: Paul (http://webpaul.net) for leading the discussion Barrie, Ian, Melissa, Kyle & the rest of the Improving (http://www.improvingenterprises.com) for letting us in there office Todd & Rob for helping during the labs The folks at GHI for the prize donations (http://www.ghielectronics.com) All the all the attendees. What is next? How about the Kinect? http://research.microsoft.com/en-us/um/redmond/projects/kinectsdk/ ...
Last night at the Dallas .NET UG (http://www.ddnug.net/) Corey Smith (http://addressof.com) demoed a between extension method in VB.NET. I threw together this version for C# for your enjoyment All it is doing is wrapping the built in Where LINQ method . . . As you can see that it will work on any type that implements IComparable (http://msdn.microsoft.com/en-us/library/system.icomparable.aspx). IComparable is used in .NET for ordering and sorting, just what we need! Here is how you would call him: As you can see there is an...
Many times you want to seed data into your DB but don’t want to put all that seed data into your code files, or perhaps you want to add stored procedures, triggers or make other database changes after code first creates your database. While I would argue that the latter impacts one of the “goals” of EF Code First (i.e. centralizing your business logic in one spot), I can see where it might have value. So lets see how we can achieve this mission. Lets start by creating our data objects. I am going to create...
Stumbled across this during a discussion of RIA services today. . . . Apparently in VB you can have the “partial” modifier on only 1/2 of a partial class. However in C# you are required to put the partial modifier on both halves of the class. I will let you guys argue about what way is better. . . . I think that both have merits. . .