Skip to content

Commit

Permalink
Deprecate NHibernate integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mausch committed Apr 29, 2014
1 parent 5ab4ef2 commit b7dd510
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions NHibernate.SolrNet/CfgHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace NHibernate.SolrNet {
/// <summary>
/// Helper class to configure NHibernate-SolrNet integration.
/// </summary>
[Obsolete("Deprecated. Replace with your own integration.")]
public class CfgHelper {
private readonly IReadOnlyMappingManager mapper;
private readonly IServiceProvider provider;
Expand Down
2 changes: 2 additions & 0 deletions NHibernate.SolrNet/ISolrSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
#endregion

using SolrNet;
using System;

namespace NHibernate.SolrNet {
/// <summary>
/// NHibernate <see cref="ISession"/> with SolrNet extensions for querying
/// </summary>
[Obsolete("Deprecated. Replace with your own integration.")]
public interface ISolrSession: ISession {
/// <summary>
/// Creates a Solr query
Expand Down
1 change: 1 addition & 0 deletions NHibernate.SolrNet/SolrSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace NHibernate.SolrNet {
/// <summary>
/// NHibernate <see cref="ISession"/> with SolrNet extensions for querying
/// </summary>
[Obsolete("Deprecated. Replace with your own integration.")]
public class SolrSession : DelegatingSession, ISolrSession {
private readonly ISession session;
private readonly IServiceProvider provider;
Expand Down
6 changes: 3 additions & 3 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ Target "Clean" <| fun _ ->
Target "Build" <| fun _ -> mainSln "Rebuild"
Target "BuildSample" <| fun _ -> sampleSln "Rebuild"

let libs = ["SolrNet"; "SolrNet.DSL"; "HttpWebAdapters"; "Castle.Facilities.SolrNetIntegration"; "Ninject.Integration.SolrNet"; "NHibernate.SolrNet"; "StructureMap.SolrNetIntegration"; "AutofacContrib.SolrNet"; "Unity.SolrNetIntegration"]
let libs = ["SolrNet"; "SolrNet.DSL"; "HttpWebAdapters"; "Castle.Facilities.SolrNetIntegration"; "Ninject.Integration.SolrNet"; "StructureMap.SolrNetIntegration"; "AutofacContrib.SolrNet"; "Unity.SolrNetIntegration"; "NHibernate.SolrNet"]
let dlls = [for l in libs -> l + ".dll"]
let dirs = [for l in libs -> l @@ "bin" @@ config]

let testAssemblies = !! ("**/bin/"+config+"/*Tests.dll") |> Seq.distinctBy (fun p -> p.Split [|'/';'\\'|] |> System.Linq.Enumerable.Last)
let noIntegrationTests = "exclude Category: Integration"
let onlyIntegrationTests = "Category: Integration"
let testTargets = List.map (fun lib -> "Test." + lib) libs
let testTargets = List.map (fun lib -> "Test." + lib) libs |> List.filter (fun l -> not (l.Contains "NHibernate"))

for lib,target in List.zip libs testTargets do
for lib,target in Seq.zip libs testTargets do
Target target <| fun _ ->
!! (lib+".Tests/bin/"+config+"/"+lib+".Tests.dll")
|> Gallio.Run (fun p -> { p with Filters = noIntegrationTests })
Expand Down

0 comments on commit b7dd510

Please sign in to comment.