Add the necessary attributes to your mapping file, In the Object Relational Designer, change the Serialization Mode property to Unidirectional. On the SQLMetal command line, add the /serialization option. Then, in your application, add a reference to System.Runtime.Serialization.dll, and use code like this: DataContractSerializer dcs = new DataContractSerializer(typeof(Customer)); StringBuilder sb = new StringBuilder(); XmlWriter writer = XmlWriter.Create(sb); dcs.WriteObject(writer, cust); writer.Close(); string xml = sb.ToString();
Laz... You forgot a few lines of code. Here, I’ll help...
public void Run(object sharp_object)
{
if (isLargeAshCloud)
{
string _shout = “We’re All Gonna Die!”;
}
else
{
string _state = “Nothing to see here, move along.”;
}
}