October 2009 Entries

F# - Fluent NHibernate - POCO Class Object

The next thing I want to try is to use an F# Class (instead of C#) with Fluent NHibernate. In my last post I worked with a C# Class & Fluent NHibernate.  The C# Class looked as follows: ------------------------------------------------------------------ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StockPrices {     public class COMPANY {         public virtual int Id { get; set; }         public virtual string COMPANY_NAME { get; set; }         public virtual string COMPANY_TICKER { get; set; }         public virtual int ASSET_TYPE_ID { get; set; }         public virtual int IS_ACTIVE { get; set; }     } } ------------------------------------------------------------------ So how do we make the same class in F#? The first thing I tried was...