MyEntityType newEntity = oBusinessObject.NewEntity()I get an Entity that has all the needed attributes to be known by the framwork and is able to be saved by the framework. So if I create an entity this way and then hydrate it by calling xml.Deserialize() do I still have the entity I started with?
public TrackSpotEntity LoadFromQueue(string loadFile) { // Generate a new Entity on the business object TrackSpotEntity saveEntity = this.NewEntity(); if (File.Exists(loadFile)) { // Hydrate Entity from XML file try { FileStream file = File.Open(loadFile, System.IO.FileMode.Open); XmlSerializer xml = new XmlSerializer(typeof(TrackSpotEntity)); saveEntity = (TrackSpotEntity)xml.Deserialize(file); file.Close(); Debug.WriteLine("Loaded", "QueueObject"); } catch (Exception ex) { LogException(ex); } } return saveEntity; }Tim