DomainDataSource has two properties for getting the data out of it: Data and DataView. The Data property is what’s intended for exposure in Binding scenarios, for instance binding a DataGrid to the DomainDataSource. This property is typed very simply as an IEnumerable. The DataView property however is intended to be...
[Read More]
(Not) Doing Back Flips with DomainDataSource [SubmitChanges sends user to first page]
When changes are successfully submitted and you have paging enabled, it’s quite possible that some of the entities that have been edited now belong to a different page. Say for instance you are viewing employees ordered by last name, and you edit one of the employees to change their last...
[Read More]
DomainDataSource – Single Record Results
While the DomainDataSource is most often used for loading entire sets of records, it can also be used for loading a single record result. This is a topic I’ve seen a few people talk about, assuming it’s a difficult thing to do, and even creating solutions for a problem that...
[Read More]
Validating Objects and Properties with Validator
ASP.NET Dynamic Data introduced the System.ComponentModel.DataAnnotations namespace in .NET 3.5 SP1. The namespace contained a bunch of attributes for applying validation rules to objects and their properties. With the “Alexandria” project (which morphed into .NET RIA Services plus some Silverlight/SDK/Toolkit additions), we were exposing your server-side entities up to your...
[Read More]
Sorry Anthony, but Facebook says you’re a Redneck
I laughed my ass off at the Redneck email that Jeremy Miller posted today. Here is the content of the email (a series of redneck jokes). But the best part is what happened when I went to post this to Facebook as a Note. Look below for a screen shot....
[Read More]