﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Registry Type Data</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 22:45:22 GMT</lastBuildDate><ttl>20</ttl><item><title>Registry Type Data</title><link>http://forum.strataframe.net/FindPost10970.aspx</link><description>I need to be able to store registry type data in the database instead of the registry (Form location/size, user preferences, etc...)&amp;nbsp;so I need to be able to store all types of data in one field in a table. I assume I use variant datatype for this in the toolkit. (Let me know if I should be using something else). &lt;/P&gt;&lt;P&gt;When I map my business object, the field I created as variant has been changed to System.xml.XmlReader.&amp;nbsp; Is this correct?&lt;/P&gt;&lt;P&gt;Is this the best way to handle storing this type of data.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Tue, 21 Aug 2007 16:00:25 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Registry Type Data</title><link>http://forum.strataframe.net/FindPost10980.aspx</link><description>Here is a suggestion and what we do.&amp;nbsp; Create a custom class that has all of the properties that you want.&amp;nbsp; Then create a table that has a item type (integer / enum) and a data (VarBinary) field.&amp;nbsp; The reason you would create an item type field is so you can create as many different classes as you want.&amp;nbsp; Once you have the class created, you can serialize to the table to save the state, then when you bring it back out it is already a class with the properties that you need.&amp;nbsp; It makes coding much easier and this is a great place to use serialization to save off states.</description><pubDate>Tue, 21 Aug 2007 16:00:25 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Registry Type Data</title><link>http://forum.strataframe.net/FindPost10976.aspx</link><description>I was originally thinking about storing some object properties,&amp;nbsp;like the splitter distance on the ThemedSplitContainer , but I&amp;nbsp;could probably get away with storing each property value that I need&amp;nbsp;in a varchar field.&amp;nbsp;I didn't know if I could store the object itself and then recall the stored object properties when required.</description><pubDate>Tue, 21 Aug 2007 14:29:47 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Registry Type Data</title><link>http://forum.strataframe.net/FindPost10973.aspx</link><description>[quote]When I map my business object, the field I created as variant has been changed to System.xml.XmlReader.&amp;nbsp; Is this correct?[/quote]&lt;/P&gt;&lt;P&gt;It really depends on how you plan to store the registry data.&amp;nbsp; How are you retrieving it and how do you plan to restore it?&amp;nbsp; More than likely a VarChar field may be all you need if you pull out the text registry entry.&amp;nbsp; This would be the same code that you see when you export a registry entry to a .REG file.</description><pubDate>Tue, 21 Aug 2007 14:03:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>