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
<?xml version="1.0" encoding="utf-8" ?> | |
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" | |
assembly="Concepts.Core" | |
namespace="Concepts.Core"> | |
<class name="Address"> | |
<id name ="Id"> | |
<generator class="guid.comb"></generator> | |
</id> | |
<property name="StreetName"></property> | |
<property name="StreetNumber"></property> |
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
using Iesi.Collections.Generic; | |
namespace Concepts.Core | |
{ | |
public class Person : Entity | |
{ | |
public virtual string GivenName { get; set; } | |
public virtual string SurName { get; set; } | |
public virtual string SurNamePrefix { get; set; } | |
public virtual string OfficialName { get; set; } |
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
// | |
// GET: /Person/ | |
public ActionResult Index() | |
{ | |
var session = FeestBeest.Web.MvcApplication.SessionFactory.GetCurrentSession(); | |
using (session.BeginTransaction()) | |
{ | |
var persons = session.CreateCriteria(typeof(Person)) | |
.List<Person>(); | |
foreach (var p in persons) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Concepts.ConsoleApp | |
{ | |
class Program | |
{ | |
/* |
NewerOlder