Salient Solutions

wrasslin ones and nones for fun and profit - Sky Sanders' Blog
posts - 96, comments - 70, trackbacks - 0

Data

There are 3 entries for the tag Data
IDataReader of IEnumberable and IEnumerable<T> (including anonymous types)

In response to a very interesting question by Jason Kealy on StackOverflow (Get an IDataReader from a typed List), I spiked out a fairly complete and tested implementation of IDataReader of IEnumerable and IEnumerable<T> that includes support for anonymous types making it possible to push Linq IQueryables containing anonymous types into an IDataReader. The use case was performing a bulk insert from an in memory List. Apparently the implementation works well for this so I decided to fold it into my libs and post about it here as well. You can find runnable source in the anwser on StackOverflow but due to the...

posted @ Friday, February 19, 2010 1:36 AM | Feedback (0) |

WCF: Loose coupling of WCF Service and Data Contracts

  Download the sample source code for this post here In this post I will attempt to describe what I learned while working out how to separate the concerns of a WCF service layer from those of a presentation layer and vice-versa while using a redistributable client assembly and NOT using client proxy code generated by Visual Studio 'Add Service Reference' or svcutil.exe. The code and scenarios do not necessarily represent best practices and will most likely offend some purists but I do believe that the topics covered represent real world challenges and may provide some insight into some not-so-obvious aspects of...

posted @ Sunday, January 31, 2010 8:38 AM | Feedback (1) |

Release: DeadSimpleDTO 2.01

  You can find the code @ DeadSimpleDTO.codeplex.com New in 2.01 INotifyPropertyChanged option One-to-many and many-to-one relationships optionally rendered Examples:   Default options:  basic property bag dto /* DeadSimpleDTO default options basic property bag dto */ using System; using Northwind; namespace Northwind { public partial class Orders { #region Properties private Int32 _orderID; public virtual Int32 OrderID { get { return _orderID; } ...

posted @ Tuesday, January 26, 2010 11:56 AM | Feedback (0) |

Powered by: