C# Class Tiraggo.Interfaces.tgConnection

Configured by the EntitySpaces section from the app or web config file.
Below is an example EntitySpaces configuration section as would be stored in the web.config or app.config file. Notice below on the "connectionInfo" element that the default is "MyMicrosoftDB". The default, in this case, "MyMicrosoftDB" will be used for all of your EntitySpaces provider calls. However, this can be easily overridden by overriding the connection name property. See the Name property of this class for more information. Notice that the "MyOracleDB" connection uses the providerMetadataKey of "esOracle". You SHOULD always use "esDefault" unless you are building a binary compatible, multi-database application.

Connection information is not serialized. <EntitySpaces> <connectionInfo default="MyMicrosoftDB"> <connections> <add name="MyMicrosoftDB" providerMetadataKey="esDefault" sqlAccessType="DynamicSQL" provider="Tiraggo.SqlClientProvider" providerClass="DataProvider" connectionString="User ID=sa;Password=secret;Initial Catalog=Northwind;Data Source=localhost;" commandTimeout="90" databaseVersion="2005"/> <add name="MyOracleDB" providerMetadataKey="esOracle" sqlAccessType="DynamicSQL" provider="Tiraggo.OracleClientProvider" providerClass="DataProvider" connectionString="Password=retina;Persist Security Info=True;User ID=MyDB;Data Source=127.0.0.1;" /> </connections> </connectionInfo> </EntitySpaces>
Show file Open project: BrewDawg/Tiraggo Class Usage Examples