Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added shorter IDbConnectionFactory.Open() alias for OpenDbConnection()

  • Loading branch information...
commit 561f84cd5f90b22a23eb6cdd9c356131bedbc542 1 parent 43e6f04
@mythz mythz authored
View
5 src/FirebirdTests/TestClassWriter/Main.cs
@@ -5,9 +5,8 @@
using System.Collections.Generic;
using System.Data;
using ServiceStack.OrmLite;
-using ServiceStack.OrmLite.Firebird;
-using ServiceStack.OrmLite.Firebird.DbSchema;
-
+using ServiceStack.OrmLite.Firebird;
+
namespace TestClassWriter
{
class MainClass
View
120 src/FirebirdTests/TestClassWriter/TestClassWriter.csproj
@@ -1,61 +1,61 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>10.0.0</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{85DF0278-488D-460B-8B40-737E07089465}</ProjectGuid>
- <OutputType>Exe</OutputType>
- <RootNamespace>TestClassWriter</RootNamespace>
- <AssemblyName>TestClassWriter</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug</OutputPath>
- <DefineConstants>DEBUG;</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <Externalconsole>true</Externalconsole>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <Externalconsole>true</Externalconsole>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- <Reference Include="System.Data" />
- <Reference Include="ServiceStack.Common, Version=3.7.4.0, Culture=neutral, PublicKeyToken=null">
- <HintPath>..\..\..\lib\ServiceStack.Common.dll</HintPath>
- </Reference>
- <Reference Include="ServiceStack.Interfaces, Version=3.7.4.0, Culture=neutral, PublicKeyToken=null">
- <HintPath>..\..\..\lib\ServiceStack.Interfaces.dll</HintPath>
- </Reference>
- <Reference Include="ServiceStack.Text, Version=3.6.9.18283, Culture=neutral, PublicKeyToken=null">
- <HintPath>..\..\..\lib\ServiceStack.Text.dll</HintPath>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Main.cs" />
- <Compile Include="AssemblyInfo.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ItemGroup>
- <ProjectReference Include="..\..\ServiceStack.OrmLite\ServiceStack.OrmLite.csproj">
- <Project>{96179AC6-F6F1-40C3-9FDD-4F6582F54C5C}</Project>
- <Name>ServiceStack.OrmLite</Name>
- </ProjectReference>
- <ProjectReference Include="..\..\ServiceStack.OrmLite.Firebird\ServiceStack.OrmLite.Firebird.csproj">
- <Project>{317B64BA-D7A6-4A15-8719-821B38147C63}</Project>
- <Name>ServiceStack.OrmLite.Firebird</Name>
- </ProjectReference>
- </ItemGroup>
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>10.0.0</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{85DF0278-488D-460B-8B40-737E07089465}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>TestClassWriter</RootNamespace>
+ <AssemblyName>TestClassWriter</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <Externalconsole>true</Externalconsole>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>none</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <Externalconsole>true</Externalconsole>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="ServiceStack.Common">
+ <HintPath>..\..\..\lib\ServiceStack.Common.dll</HintPath>
+ </Reference>
+ <Reference Include="ServiceStack.Interfaces">
+ <HintPath>..\..\..\lib\ServiceStack.Interfaces.dll</HintPath>
+ </Reference>
+ <Reference Include="ServiceStack.Text">
+ <HintPath>..\..\..\lib\ServiceStack.Text.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Data" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Main.cs" />
+ <Compile Include="AssemblyInfo.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <ItemGroup>
+ <ProjectReference Include="..\..\ServiceStack.OrmLite\ServiceStack.OrmLite.csproj">
+ <Project>{96179AC6-F6F1-40C3-9FDD-4F6582F54C5C}</Project>
+ <Name>ServiceStack.OrmLite</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\ServiceStack.OrmLite.Firebird\ServiceStack.OrmLite.Firebird.csproj">
+ <Project>{317B64BA-D7A6-4A15-8719-821B38147C63}</Project>
+ <Name>ServiceStack.OrmLite.Firebird</Name>
+ </ProjectReference>
+ </ItemGroup>
</Project>
View
15 src/ServiceStack.OrmLite/OrmLiteConnectionFactory.cs
@@ -171,5 +171,20 @@ public static T Run<T>(this IDbConnectionFactory connectionFactory, Func<IDbConn
return runDbCommandsFn(dbConn);
}
}
+
+ public static IDbConnection Open(this IDbConnectionFactory connectionFactory)
+ {
+ return connectionFactory.OpenDbConnection();
+ }
+
+ public static IDbConnection Open(this IDbConnectionFactory connectionFactory, string namedConnection)
+ {
+ return ((OrmLiteConnectionFactory)connectionFactory).OpenDbConnection(namedConnection);
+ }
+
+ public static IDbConnection OpenDbConnection(this IDbConnectionFactory connectionFactory, string namedConnection)
+ {
+ return ((OrmLiteConnectionFactory)connectionFactory).OpenDbConnection(namedConnection);
+ }
}
}
View
2  src/ServiceStack.OrmLite/Properties/AssemblyInfo.cs
@@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("3.9.6.0")]
+[assembly: AssemblyVersion("3.9.7.0")]
//[assembly: AssemblyFileVersion("1.0.*")]
Please sign in to comment.
Something went wrong with that request. Please try again.