Skip to main content

Posts

Showing posts from February, 2010

Using Entity Framework Self Tracking Entities with Workflow Persistence in .NET 4.0 RC

I just ran into a problem when trying to use Workflow Persistence with Self Tracking Entities in .NET 4.0 RC. The execution of the InstancePersistenceCommand named {urn:schemas-microsoft-com:System.Activities.Persistence/command}SaveWorkflow was interrupted by a n error. ---> System.Runtime.Serialization.InvalidDataContractException: Type ‘ElasticSoftware.DownloadSheriff.Domain.Model.Entities.TrackableCollection`1[ElasticSoftware.DownloadSheriff.Domain.Model.Entities.Customer]' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.  If the type is a collection, consider marking it with the CollectionDataContractAttribute.  See the Microsoft .NET Framework documentation for other supported types. By Default the TrackableCollection in the Types.tt is not annotated with a DataContract attribute. You can fix this by going to Line 1401 and adding the DataCo

Breaking Changes for Visual Studio 2010 RC

Just installed the Visual Studio RC and have come across the following issues. System.Runtime.Persistance has been replaced by System.Runtime.DurableInstancing All the Workflow Persistance Schema and Logic has changed and there is no Migration path. You can find the latest scripts here: C:\Windows\Microsoft.NET\Framework\v4.0.30128\SQL\en\ These were the only issues I had when upgrading a 30 project solution. Really enjoying the increased speed combined with ReSharper 5.0