Commit for development environment setup

This commit is contained in:
2023-06-19 16:12:33 -04:00
parent be72063a3c
commit bbce2ad0a6
2209 changed files with 1171775 additions and 625 deletions

View File

@@ -0,0 +1,55 @@
using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.1.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//

View File

@@ -0,0 +1,58 @@
using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
//
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.1.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("E:\\proms.net\\Public Key\\vlnkey.snk")]
[assembly: AssemblyKeyName("")]

View File

@@ -0,0 +1,205 @@
/*********************************************************************************************
* Copyright 2002 - Volian Enterprises, Inc. All rights reserved.
* Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
* ------------------------------------------------------------------------------
* $Workfile: DBEncap.cs $ $Revision: 5 $
* $Author: Kathy $ $Date: 12/10/02 2:24p $
*
* $History: DBEncap.cs $
*
* ***************** Version 5 *****************
* User: Kathy Date: 12/10/02 Time: 2:24p
* Updated in $/LibSource/DBEncapsulation
* handle dbnull for sql server
*
* ***************** Version 4 *****************
* User: Kathy Date: 10/09/02 Time: 12:36p
* Updated in $/LibSource/DBEncapsulation
* handle null in data
*
* ***************** Version 3 *****************
* User: Jsj Date: 9/05/02 Time: 1:03p
* Updated in $/LibSource/DBEncapsulation
* added ExecuteNonQuery calls
*
* ***************** Version 2 *****************
* User: Jsj Date: 9/05/02 Time: 11:31a
* Updated in $/LibSource/DBEncapsulation
* added Close functions
*
* ***************** Version 1 *****************
* User: Jsj Date: 8/23/02 Time: 3:07p
* Created in $/LibSource/DBEncapsulation
*********************************************************************************************/
using System;
using System.Data;
using System.Data.OleDb;
using Microsoft.Data.Odbc;
namespace DBEncapsulation
{
/// <summary>
/// Summary description for DBEncapsulate: Encapsulate database interface methods &
/// classes. Will encapsulate OLE DB & ODBC connections, commands, readers & other
/// features as required.
/// </summary>
public class DBEncapsulate
{
public virtual void Connection(string strconnect)
{
}
public virtual void OpenConnection()
{
}
public virtual void CloseConnection()
{
}
public virtual void Command(string strCommand)
{
}
public virtual void CommandDispose()
{
}
public virtual bool Reader()
{
return false;
}
public virtual void ReaderClose()
{
}
public virtual bool Read()
{
return false;
}
public virtual string GetString(int num)
{
string tmp = "tmp";
return (tmp);
}
public virtual int GetInt32(int num)
{
return (0);
}
public virtual void NonQuery()
{
}
}
public class OLEDB_DBEncap: DBEncapsulate
{
OleDbConnection myDatabaseConn;
OleDbCommand myCommand;
OleDbDataReader myReader;
public override void Connection(string strconnect)
{
myDatabaseConn = new OleDbConnection(strconnect);
}
public override void OpenConnection()
{
myDatabaseConn.Open();
}
public override void CloseConnection()
{
myDatabaseConn.Close();
}
public override void Command(string strCommand)
{
myCommand = new OleDbCommand(strCommand,myDatabaseConn);
}
public override void CommandDispose()
{
myCommand.Dispose();
}
public override bool Reader()
{
myReader = myCommand.ExecuteReader();
if (myReader == null)
return false;
else
return true;
}
public override void ReaderClose()
{
myReader.Close();
}
public override bool Read()
{
return(myReader.Read());
}
public override string GetString(int num)
{
if (myReader.IsDBNull(num) == false)
return(myReader.GetString(num));
else
return null;
//if (myReader.GetString(num) == null) return null;
//return(myReader.GetString(num));
}
public override int GetInt32(int num)
{
return(myReader.GetInt32(num));
}
public override void NonQuery()
{
myCommand.ExecuteNonQuery();
}
}
public class ODBC_DBEncap: DBEncapsulate
{
OdbcConnection myDatabaseConn;
OdbcCommand myCommand;
OdbcDataReader myReader;
public override void Connection(string strconnect)
{
myDatabaseConn = new OdbcConnection(strconnect);
}
public override void OpenConnection()
{
myDatabaseConn.Open();
}
public override void CloseConnection()
{
myDatabaseConn.Close();
}
public override void Command(string strCommand)
{
myCommand = new OdbcCommand(strCommand,myDatabaseConn);
}
public override void CommandDispose()
{
myCommand.Dispose();
}
public override bool Reader()
{
myReader = myCommand.ExecuteReader();
if (myReader == null)
return false;
else
return true;
}
public override void ReaderClose()
{
myReader.Close();
}
public override bool Read()
{
return(myReader.Read());
}
public override string GetString(int num)
{
if (myReader.IsDBNull(num) == false)
return(myReader.GetString(num));
else
return null;
}
public override int GetInt32(int num)
{
return(myReader.GetInt32(num));
}
public override void NonQuery()
{
myCommand.ExecuteNonQuery();
}
}
}

View File

@@ -0,0 +1,106 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{6D44F537-879E-11D6-84B8-00A0CC271352}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>DBEncapsulation</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>DBEncapsulation</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Data.Odbc">
<Name>Microsoft.Data.Odbc</Name>
<HintPath>C:\Program Files\Microsoft.Net\Odbc.Net\Microsoft.Data.Odbc.dll</HintPath>
</Reference>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="DBEncap.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,21 @@
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DBEncapsulation", "DBEncapsulation.csproj", "{6D44F537-879E-11D6-84B8-00A0CC271352}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
Debug = Debug
Release = Release
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{6D44F537-879E-11D6-84B8-00A0CC271352}.Debug.ActiveCfg = Debug|.NET
{6D44F537-879E-11D6-84B8-00A0CC271352}.Debug.Build.0 = Debug|.NET
{6D44F537-879E-11D6-84B8-00A0CC271352}.Release.ActiveCfg = Release|.NET
{6D44F537-879E-11D6-84B8-00A0CC271352}.Release.Build.0 = Release|.NET
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal