Canalblog
Suivre ce blog Administration + Créer mon blog
Publicité
asp.net
Publicité
Archives
linq
11 juillet 2009

LINQ To SQL Generic methods

In order to avoid too much coding in my DAO layer, I've been creating some generic LINQ to SQL CRUD methods. Generic Delete method: /// /// Delete an entity /// /// Entity to be deleted [System.ComponentModel.DataObjectMethod(System.ComponentModel.DataObjectMethodType.Delete)]...
Publicité
Publicité
26 juin 2009

LINQ To SQL issue when serializing in the viewstate

After having implemented LINQ DTO with relations, using the codeplex L2ST4 templates, I got an error when seriallizing the DTO to the viewstate. The problem was about th serialization of a relation, implemented as an entityset in the DTO. The problem...
26 juin 2009

Create a Serializer / Deserializer for LINQ To SQL Entities

using System;using System.IO;using System.Xml;using System.Runtime.Serialization; namespace JC.Common{ /// /// Provides methods to serialize objects /// public static class SerializeHelper { public static string SerializeXml(object...
Publicité