Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added NHibernate test project, plus snapshot binaries of NH and FNH.
- Loading branch information
Showing
27 changed files
with
54,483 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NUnit.Runners" version="2.6.2" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@ECHO OFF | ||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
|
||
echo Performing some hardcore file system nuking! | ||
FOR /R . %%X IN (bin obj) DO ( | ||
SET retard=%%X | ||
SET cretin=!retard:\Umbraco\bin=! | ||
IF !cretin! == %%X ( | ||
RD /S /Q "%%X" 2> NUL | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace PomonaNHibernateTest.Models | ||
{ | ||
public class EntityBase | ||
{ | ||
public virtual int Id { get; set; } | ||
} | ||
|
||
public class Product : EntityBase | ||
{ | ||
public virtual decimal Price { get; set; } | ||
public virtual string Sku { get; set; } | ||
public virtual string Name { get; set; } | ||
} | ||
|
||
public class Item : EntityBase | ||
{ | ||
public virtual PurchaseOrder Order { get; set; } | ||
public virtual int Quantity { get; set; } | ||
public virtual decimal Price { get; set; } | ||
public virtual Product Product { get; set; } | ||
} | ||
|
||
public class PurchaseOrder : EntityBase | ||
{ | ||
public virtual int SomeGroup { get; set; } | ||
private IList<Item> _items; | ||
|
||
public PurchaseOrder() | ||
{ | ||
_items = new List<Item>(); | ||
} | ||
|
||
public virtual Customer Customer { get; set; } | ||
public virtual IList<Item> Items | ||
{ | ||
get { return _items; } | ||
set { _items = value; } | ||
} | ||
} | ||
|
||
public class Customer : EntityBase | ||
{ | ||
public virtual string Name { get; set; } | ||
} | ||
} |
Oops, something went wrong.