The Salty Economist

Things I Should Have Learned in High School
posts - 56, comments - 0, trackbacks - 0

October 2009 Blog Posts

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...

posted @ Tuesday, October 13, 2009 4:44 PM | Feedback (995) |

Powered by:
Powered By Subtext Powered By ASP.NET