Click here to Skip to main content
15,886,518 members
Articles / Programming Languages / SQL

DataLoaders - Unified Data to Object Binding

Rate me:
Please Sign up or sign in to vote.
4.72/5 (35 votes)
31 Oct 2004CPOL19 min read 76.2K   2.9K   83  
A framework to completely separate objects from their data source - allowing any data source to be used without prior consideration in your code or designs. Databases, text files, web services and potentially anything else can all be used or swapped transparently.
<html dir="LTR">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
    <title>DataSourceValidatorObjectTypeConverter Methods</title>
    <xml>
    </xml>
    <link rel="stylesheet" type="text/css" href="MSDN.css" />
  </head>
  <body id="bodyID" class="dtBODY">
    <div id="nsbanner">
      <div id="bannerrow1">
        <table class="bannerparthead" cellspacing="0">
          <tr id="hdr">
            <td class="runninghead">DataLoader Documentation</td>
            <td class="product">
            </td>
          </tr>
        </table>
      </div>
      <div id="TitleRow">
        <h1 class="dtH1">DataSourceValidatorObjectTypeConverter�Methods</h1>
      </div>
    </div>
    <div id="nstext">
      <p>The methods of the <b>DataSourceValidatorObjectTypeConverter</b> class are listed below. For a complete list of <b>DataSourceValidatorObjectTypeConverter</b> class members, see the <a href="Bttlxe.Controls.DataSourceValidatorObjectTypeConverterMembers.html">DataSourceValidatorObjectTypeConverter Members</a> topic.</p>
      <h4 class="dtH4">Public Instance Methods</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Bttlxe.Controls.DataSourceValidatorObjectTypeConverter.CanConvertFrom_overload_1.html">CanConvertFrom</a></td><td width="50%">Overloaded.  Returns true for a sourceType of string to indicate that conversions from string to integer are supported. (The <a href="Bttlxe.Controls.DataSourceValidatorObjectTypeConverter.GetStandardValues_overload_1.html">GetStandardValues</a> method requires a string to native type conversion because the items in the drop-down list are translated to string.) </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassCanConvertFromTopic.htm">CanConvertFrom</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Returns whether this converter can convert an object of the given type to the type of this converter.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassCanConvertToTopic.htm">CanConvertTo</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Returns whether this converter can convert the object to the specified type, using the specified context.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Bttlxe.Controls.DataSourceValidatorObjectTypeConverter.ConvertFrom_overload_1.html">ConvertFrom</a></td><td width="50%">Overloaded.  If the type of the value to convert is string, parses the string and returns the integer to set the value of the property to. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassConvertFromTopic.htm">ConvertFrom</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Converts the given value to the type of this converter.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassConvertFromInvariantStringTopic.htm">ConvertFromInvariantString</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Converts the given string to the type of this converter, using the invariant culture.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassConvertFromStringTopic.htm">ConvertFromString</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded. Converts the specified text to an object.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassConvertToTopic.htm">ConvertTo</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Converts the given value object to the specified type, using the specified context and culture information.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassConvertToInvariantStringTopic.htm">ConvertToInvariantString</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded. Converts the specified value to a culture-invariant string representation.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassConvertToStringTopic.htm">ConvertToString</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded. Converts the specified value to a string representation.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassCreateInstanceTopic.htm">CreateInstance</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded. Creates an instance of the Type that this <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassTopic.htm">TypeConverter</a> is associated with, using the specified context, given a set of property values for the object.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassEqualsTopic.htm">Equals</a> (inherited from <b>Object</b>)</td><td width="50%">Determines whether the specified <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> is equal to the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassGetCreateInstanceSupportedTopic.htm">GetCreateInstanceSupported</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Returns whether changing a value on this object requires a call to <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassCreateInstanceTopic.htm">CreateInstance</a> to create a new value, using the specified context.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetHashCodeTopic.htm">GetHashCode</a> (inherited from <b>Object</b>)</td><td width="50%">Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassGetPropertiesTopic.htm">GetProperties</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassGetPropertiesSupportedTopic.htm">GetPropertiesSupported</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Returns whether this object supports properties, using the specified context.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Bttlxe.Controls.DataSourceValidatorObjectTypeConverter.GetStandardValues_overload_1.html">GetStandardValues</a></td><td width="50%">Overloaded.  Returns a StandardValuesCollection of standard value objects. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassGetStandardValuesTopic.htm">GetStandardValues</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Returns a collection of standard values from the default context for the data type this type converter is designed for.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassGetStandardValuesExclusiveTopic.htm">GetStandardValuesExclusive</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Returns whether the collection of standard values returned from <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassGetStandardValuesTopic.htm">GetStandardValues</a> is an exclusive list of possible values, using the specified context.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="Bttlxe.Controls.DataSourceValidatorObjectTypeConverter.GetStandardValuesSupported_overload_1.html">GetStandardValuesSupported</a></td><td width="50%">Overloaded.  Indicates this converter provides a list of standard values. </td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassGetStandardValuesSupportedTopic.htm">GetStandardValuesSupported</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Returns whether this object supports a standard set of values that can be picked from a list.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassGetTypeTopic.htm">GetType</a> (inherited from <b>Object</b>)</td><td width="50%">Gets the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemTypeClassTopic.htm">Type</a> of the current instance.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassIsValidTopic.htm">IsValid</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Overloaded.  Returns whether the given value object is valid for this type and for the specified context.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="pubmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassToStringTopic.htm">ToString</a> (inherited from <b>Object</b>)</td><td width="50%">Returns a <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a> that represents the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.</td></tr></table>
      </div>
      <h4 class="dtH4">Protected Instance Methods</h4>
      <div class="tablediv">
        <table class="dtTABLE" cellspacing="0">
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassFinalizeTopic.htm">Finalize</a> (inherited from <b>Object</b>)</td><td width="50%">Allows an <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> to attempt to free resources and perform other cleanup operations before the <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a> is reclaimed by garbage collection.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassGetConvertFromExceptionTopic.htm">GetConvertFromException</a> (inherited from <b>TypeConverter</b>)</td><td width="50%"> Returns an exception to throw when a conversion cannot be performed.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassGetConvertToExceptionTopic.htm">GetConvertToException</a> (inherited from <b>TypeConverter</b>)</td><td width="50%"> Returns an exception to throw when a conversion cannot be performed.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassMemberwiseCloneTopic.htm">MemberwiseClone</a> (inherited from <b>Object</b>)</td><td width="50%">Creates a shallow copy of the current <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemObjectClassTopic.htm">Object</a>.</td></tr>
<tr VALIGN="top"><td width="50%"><img src="protmethod.gif"></img><a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemComponentModelTypeConverterClassSortPropertiesTopic.htm">SortProperties</a> (inherited from <b>TypeConverter</b>)</td><td width="50%">Sorts a collection of properties.</td></tr></table>
      </div>
      <h4 class="dtH4">See Also</h4>
      <p>
        <a href="Bttlxe.Controls.DataSourceValidatorObjectTypeConverter.html">DataSourceValidatorObjectTypeConverter Class</a> | <a href="Bttlxe.Controls.html">Bttlxe.Controls Namespace</a></p>
      <object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;">
        <param name="Keyword" value="DataSourceValidatorObjectTypeConverter class, methods">
        </param>
      </object>
      <hr />
      <div id="footer">
        <p>
          <a href="mailto:dwulff@bttlxe.com?subject=DataLoader%20Documentation%20Documentation%20Feedback:%20DataSourceValidatorObjectTypeConverter�Methods">Send comments on this topic.</a>
        </p>
        <p>
          <a href="http://www.bttlxe.com">Copyright 2004 Battleaxe Software Ltd.</a>
        </p>
        <p>
        </p>
      </div>
    </div>
  </body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO Bttlxe Ltd & Incentica Ltd
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions