Skip to content

Commit

Permalink
Merge pull request #9 from mattwar/nuget
Browse files Browse the repository at this point in the history
Nuget
  • Loading branch information
mattwar authored Sep 12, 2017
2 parents 645a0ce + 9378b30 commit e2ab94d
Show file tree
Hide file tree
Showing 35 changed files with 185 additions and 85 deletions.
20 changes: 20 additions & 0 deletions nuget/IQToolkit.Access.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>IQToolkit.Access</id>
<version>1.0.0.0</version>
<title>IQToolkit ORM for MS Access</title>
<authors>Matt Warren</authors>
<owners>Matt Warren</owners>
<projectUrl>https://github.com/mattwar/iqtoolkit</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>IQToolkit ORM for MS Access</description>
<copyright />
<dependencies>
<dependency id="IQToolkit.Common" version="1.0.0.0" />
</dependencies>
</metadata>
<files>
<file src="..\bin\Release\Access\IQToolkit.Data.Access.dll" target="lib\net45\IQToolkit.Data.Access.dll" />
</files>
</package>
21 changes: 21 additions & 0 deletions nuget/IQToolkit.Common.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>IQToolkit.Common</id>
<version>1.0.0.0</version>
<title>IQToolkit ORM for System.Data database providers</title>
<authors>Matt Warren</authors>
<owners>Matt Warren</owners>
<projectUrl>https://github.com/mattwar/iqtoolkit</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>IQToolkit ORM for System.Data database providers (core API and shared libraries).</description>
<summary></summary>
<copyright />
</metadata>
<files>
<file src="..\bin\Release\IQToolkit\IQToolkit.Data.dll" target="lib\net45\IQToolkit.Data.dll" />
<file src="..\bin\Release\IQToolkit\IQToolkit.Data.XML" target="lib\net45\IQToolkit.Data.xml" />
<file src="..\bin\Release\IQToolkit\IQToolkit.dll" target="lib\net45\IQToolkit.dll" />
<file src="..\bin\Release\IQToolkit\IQToolkit.XML" target="lib\net45\IQToolkit.xml" />
</files>
</package>
21 changes: 21 additions & 0 deletions nuget/IQToolkit.MySqlClient.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>IQToolkit.MySqlClient</id>
<version>1.0.0.0</version>
<title>IQToolkit ORM for MySql Client</title>
<authors>Matt Warren</authors>
<owners>Matt Warren</owners>
<projectUrl>https://github.com/mattwar/iqtoolkit</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>IQToolkit ORM for MySql Client</description>
<copyright />
<dependencies>
<dependency id="IQToolkit.Common" version="1.0.0.0" />
<dependency id="MySql.Data" version="6.9.5" />
</dependencies>
</metadata>
<files>
<file src="..\bin\Release\MySql\IQToolkit.Data.MySqlClient.dll" target="lib\net45\IQToolkit.Data.MySqlClient.dll" />
</files>
</package>
21 changes: 21 additions & 0 deletions nuget/IQToolkit.SQLite.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>IQToolkit.SQLite</id>
<version>1.0.0.0</version>
<title>IQToolkit ORM for SQLite</title>
<authors>Matt Warren</authors>
<owners>Matt Warren</owners>
<projectUrl>https://github.com/mattwar/iqtoolkit</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>IQToolkit ORM for SQLite (System.Data.SQLite)</description>
<copyright />
<dependencies>
<dependency id="IQToolkit.Common" version="1.0.0.0" />
<dependency id="System.Data.SQLite.Core" version="1.0.95.0"/>
</dependencies>
</metadata>
<files>
<file src="..\bin\Release\SQLite\IQToolkit.Data.SQLite.dll" target="lib\net45\IQToolkit.Data.SQLite.dll" />
</files>
</package>
20 changes: 20 additions & 0 deletions nuget/IQToolkit.SqlClient.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>IQToolkit.SqlClient</id>
<version>1.0.0.0</version>
<title>IQToolkit ORM for MS SQL Server (SqlClient)</title>
<authors>Matt Warren</authors>
<owners>Matt Warren</owners>
<projectUrl>https://github.com/mattwar/iqtoolkit</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>IQToolkit ORM for MS SQL Server (SqlClient)</description>
<copyright />
<dependencies>
<dependency id="IQToolkit.Common" version="1.0.0.0" />
</dependencies>
</metadata>
<files>
<file src="..\bin\Release\SqlClient\IQToolkit.Data.SqlClient.dll" target="lib\net45\IQToolkit.Data.SqlClient.dll" />
</files>
</package>
21 changes: 21 additions & 0 deletions nuget/IQToolkit.SqlServerCe.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>IQToolkit.SqlServerCe</id>
<version>1.0.0.0</version>
<title>IQToolkit ORM for MS SQL Server Compact Edition</title>
<authors>Matt Warren</authors>
<owners>Matt Warren</owners>
<projectUrl>https://github.com/mattwar/iqtoolkit</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>IQToolkit ORM for MS SQL Server Compact Edition (Microsoft.SqlServer.Compact)</description>
<copyright />
<dependencies>
<dependency id="IQToolkit.Common" version="1.0.0.0" />
<dependency id="Microsoft.SqlServer.Compact" version="4.0.8876.1"/>
</dependencies>
</metadata>
<files>
<file src="..\bin\Release\SqlServerCe\IQToolkit.Data.SqlServerCe.dll" target="lib\net45\IQToolkit.Data.SqlServerCe.dll" />
</files>
</package>
Binary file added nuget/nuget.exe
Binary file not shown.
7 changes: 7 additions & 0 deletions nuget/pack.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nuget pack IQToolkit.Common.nuspec -OutputDirectory "..\bin\release\nupkgs"
nuget pack IQToolkit.Access.nuspec -OutputDirectory "..\bin\release\nupkgs"
nuget pack IQToolkit.MySqlClient.nuspec -OutputDirectory "..\bin\release\nupkgs"
nuget pack IQToolkit.SqlClient.nuspec -OutputDirectory "..\bin\release\nupkgs"
nuget pack IQToolkit.SQLite.nuspec -OutputDirectory "..\bin\release\nupkgs"
nuget pack IQToolkit.SqlServerCe.nuspec -OutputDirectory "..\bin\release\nupkgs"

6 changes: 3 additions & 3 deletions src/IQToolkit.Data.Access/IQToolkit.Data.Access.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\bin\Debug\</OutputPath>
<OutputPath>..\..\bin\Debug\Access\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -48,7 +48,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\bin\Release\</OutputPath>
<OutputPath>..\..\bin\Release\Access\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -57,7 +57,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core"/>
<Reference Include="System.Core" />
<Reference Include="System.Data" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\bin\Debug\</OutputPath>
<OutputPath>..\..\bin\Debug\MySql\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -49,7 +49,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\bin\Release\</OutputPath>
<OutputPath>..\..\bin\Release\MySql\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
4 changes: 2 additions & 2 deletions src/IQToolkit.Data.SQLite/IQToolkit.Data.SQLite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\bin\Debug\</OutputPath>
<OutputPath>..\..\bin\Debug\SqLite\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -50,7 +50,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\bin\Release\</OutputPath>
<OutputPath>..\..\bin\Release\SqLite\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
6 changes: 3 additions & 3 deletions src/IQToolkit.Data.SqlClient/IQToolkit.Data.SqlClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\bin\Debug\</OutputPath>
<OutputPath>..\..\bin\Debug\SqlClient\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -48,7 +48,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\bin\Release\</OutputPath>
<OutputPath>..\..\bin\Release\SqlClient\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -57,7 +57,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core"/>
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.XML" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\bin\Debug\</OutputPath>
<OutputPath>..\..\bin\Debug\SqlServerCe\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand All @@ -49,7 +49,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\bin\Release\</OutputPath>
<OutputPath>..\..\bin\Release\SqlServerCe\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
3 changes: 0 additions & 3 deletions src/IQToolkit.Data/Common/Expressions/Aggregator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ public static class Aggregator
/// This is primarily used for aggregators stored in ProjectionExpression's, which are used to represent the
/// final transformation of the entire result set of a query.
/// </summary>
/// <param name="expectedType"></param>
/// <param name="projector"></param>
/// <returns></returns>
public static LambdaExpression GetAggregator(Type expectedType, Type actualType)
{
Type actualElementType = TypeHelper.GetElementType(actualType);
Expand Down
22 changes: 0 additions & 22 deletions src/IQToolkit.Data/Common/Mapping/BasicMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public override bool IsRelationship(MappingEntity entity, MemberInfo member)
/// <summary>
/// Deterimines is a property is mapped onto a column or relationship
/// </summary>
/// <param name="member"></param>
/// <returns></returns>
public virtual bool IsMapped(MappingEntity entity, MemberInfo member)
{
return true;
Expand All @@ -76,8 +74,6 @@ public virtual bool IsMapped(MappingEntity entity, MemberInfo member)
/// <summary>
/// Determines if a property is mapped onto a column
/// </summary>
/// <param name="member"></param>
/// <returns></returns>
public virtual bool IsColumn(MappingEntity entity, MemberInfo member)
{
//return this.mapping.IsMapped(entity, member) && this.translator.Linguist.Language.IsScalar(TypeHelper.GetMemberType(member));
Expand All @@ -98,8 +94,6 @@ public virtual string GetColumnDbType(MappingEntity entity, MemberInfo member)
/// <summary>
/// Determines if a property represents or is part of the entities unique identity (often primary key)
/// </summary>
/// <param name="member"></param>
/// <returns></returns>
public override bool IsPrimaryKey(MappingEntity entity, MemberInfo member)
{
return false;
Expand All @@ -108,8 +102,6 @@ public override bool IsPrimaryKey(MappingEntity entity, MemberInfo member)
/// <summary>
/// Determines if a property is computed after insert or update
/// </summary>
/// <param name="member"></param>
/// <returns></returns>
public virtual bool IsComputed(MappingEntity entity, MemberInfo member)
{
return false;
Expand All @@ -118,8 +110,6 @@ public virtual bool IsComputed(MappingEntity entity, MemberInfo member)
/// <summary>
/// Determines if a property is generated on the server during insert
/// </summary>
/// <param name="member"></param>
/// <returns></returns>
public virtual bool IsGenerated(MappingEntity entity, MemberInfo member)
{
return false;
Expand All @@ -128,8 +118,6 @@ public virtual bool IsGenerated(MappingEntity entity, MemberInfo member)
/// <summary>
/// Determines if a property should not be written back to database
/// </summary>
/// <param name="member"></param>
/// <returns></returns>
public virtual bool IsReadOnly(MappingEntity entity, MemberInfo member)
{
return false;
Expand All @@ -149,8 +137,6 @@ public virtual bool IsUpdatable(MappingEntity entity, MemberInfo member)
/// <summary>
/// The type of the entity on the other side of the relationship
/// </summary>
/// <param name="member"></param>
/// <returns></returns>
public virtual MappingEntity GetRelatedEntity(MappingEntity entity, MemberInfo member)
{
Type relatedType = TypeHelper.GetElementType(TypeHelper.GetMemberType(member));
Expand Down Expand Up @@ -197,8 +183,6 @@ public virtual IEnumerable<MemberInfo> GetAssociationRelatedKeyMembers(MappingEn
/// <summary>
/// The name of the corresponding database table
/// </summary>
/// <param name="rowType"></param>
/// <returns></returns>
public virtual string GetTableName(MappingEntity entity)
{
return entity.EntityType.Name;
Expand All @@ -207,8 +191,6 @@ public virtual string GetTableName(MappingEntity entity)
/// <summary>
/// The name of the corresponding table column
/// </summary>
/// <param name="member"></param>
/// <returns></returns>
public virtual string GetColumnName(MappingEntity entity, MemberInfo member)
{
return member.Name;
Expand All @@ -217,8 +199,6 @@ public virtual string GetColumnName(MappingEntity entity, MemberInfo member)
/// <summary>
/// A sequence of all the mapped members
/// </summary>
/// <param name="rowType"></param>
/// <returns></returns>
public override IEnumerable<MemberInfo> GetMappedMembers(MappingEntity entity)
{
//Type type = entity.ElementType.IsInterface ? entity.EntityType : entity.ElementType;
Expand Down Expand Up @@ -397,8 +377,6 @@ public override QueryTranslator Translator
/// <summary>
/// The query language specific type for the column
/// </summary>
/// <param name="member"></param>
/// <returns></returns>
public virtual QueryType GetColumnType(MappingEntity entity, MemberInfo member)
{
string dbType = this.mapping.GetColumnDbType(entity, member);
Expand Down
6 changes: 1 addition & 5 deletions src/IQToolkit.Data/Common/Mapping/QueryMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public interface IHaveMappingEntity
}

/// <summary>
/// Defines mapping information & rules for the query provider
/// Defines mapping information and rules for the query provider
/// </summary>
public abstract class QueryMapping
{
Expand Down Expand Up @@ -107,8 +107,6 @@ public virtual IEnumerable<MemberInfo> GetPrimaryKeyMembers(MappingEntity entity
/// <summary>
/// Determines if a relationship property refers to a single entity (as opposed to a collection.)
/// </summary>
/// <param name="member"></param>
/// <returns></returns>
public virtual bool IsSingletonRelationship(MappingEntity entity, MemberInfo member)
{
if (!this.IsRelationship(entity, member))
Expand Down Expand Up @@ -167,8 +165,6 @@ public abstract class QueryMapper
/// <summary>
/// Get a query expression that selects all entities from a table
/// </summary>
/// <param name="rowType"></param>
/// <returns></returns>
public abstract ProjectionExpression GetQueryExpression(MappingEntity entity);

/// <summary>
Expand Down
Loading

0 comments on commit e2ab94d

Please sign in to comment.