Follow @PDSAInc .NET - Paul Sheriff's Blog for the Real World

Paul Sheriff's Blog for the Real World

This blog is to share my tips and tricks garnered over 25+ years in the IT industry

Paul's Favorites

Browse by Tags

All Tags » .NET (RSS)
Creating Collections of Entity Objects using Reflection
In my last blog posts I have been showing you how to create collection of entity objects using code that is custom for each table and object you create. Well, if you use a little reflection code you can shrink this code quite a bit. Yes, we all know that...
Join PDSA at DevIntersection Conference - April 8 - 11, 2013
Use the Code 'PDSA' when registering and receive $50 off your registration! Top Microsoft Speakers Featured at DevIntersection & SQLIntersection, Including 3 Speakers from PDSA, Inc. Top Microsoft and third-party speakers, including PDSA's Paul Sheriff...
Posted: Mar 04 2013, 09:07 AM by psheriff | with 1 comment(s)
Filed under: ,
Creating Collections of Entity Objects using LINQ and Field Method
Let’s now look at another advantage of using a DataTable. A lot of developers today are used to using LINQ. After loading data into a DataTable you can iterate using a foreach statement, or you can use LINQ to create a collection of entity objects. The...
Creating Collections of Entity Objects using LINQ
As discussed in my last two blog posts you have a variety of ways to create collections of Entity classes. Using a DataSet or DataTable is a little slower than using a DataReader, but in most cases the difference is in milliseconds so in a real world...
Posted: Feb 11 2013, 07:17 AM by psheriff | with 3 comment(s)
Filed under: , ,
Building Collections of Entity Classes using a DataReader
As discussed in the last blog post, it is a best practice to build entity classes. In the last post we filled a DataTable with Category data and then iterated over that DataTable to create a collection of Entity classes. In this blog post we will use...
Building Collections of Entity Classes
What is an Entity Class An Entity class has properties and typically no methods. An entity class is generally used to hold a single row of data from a table. So, if you have a Category table with the fields CategoryId, CategoryName and Description, you...
Creating a XAML Tile Control
One of the navigation mechanisms used in Windows 8 and Windows Phone is a Tile. A tile is a large rectangle that can have words and pictures that a user can click on. You can build your own version of a Tile in your WPF or Silverlight applications using...
Posted: Oct 22 2012, 10:13 AM by psheriff | with no comments
Filed under: , ,
A WPF Image/Text Button
Some of our customers are asking us to give them a Windows 8 look and feel for their applications. This includes things like buttons, tiles, application bars, and other features. In this blog post I will describe how to create a button that looks similar...
Posted: Oct 01 2012, 09:03 AM by psheriff | with no comments
Filed under: , ,
A WPF Image Button
Instead of a normal button with words, sometimes you want a button that is just graphical. Yes, you can put an Image control in the Content of a normal Button control, but you still have the button outline, and trying to change the style can be rather...
Posted: Sep 06 2012, 01:15 PM by psheriff | with no comments
Filed under: ,
A Communication System for XAML Applications
In any application, you want to keep the coupling between any two or more objects as loose as possible. Coupling happens when one class contains a property that is used in another class, or uses another class in one of its methods. If you have this situation...
More Posts Next page »