Fluent NHibernate Mappings ClassMap<Entities>....
- by Pandiya Chendur
I was going through fluent hibernate getting started tutorial.... In my asp.net mvc web application i have created Entities and Mapping folder as they stated... I created an entity class and i tried to map it my mapping class using this,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FluentNhibernateMVC.Entities;
namespace FluentNhibernateMVC.Mappings
{
public class ClientMap : ClassMap<Client>
{
}
}
I cant able to find a ClassMap keyword in my autosuggest list why? This is my entity class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace FluentNhibernateMVC.Entities
{
public class Client
{
public int ClientId { get; set; }
public string ClientName { get; set; }
public string ClientMobNo { get; set; }
public string ClientAddress { get; set; }
public DateTime CreatedDate { get; set; }
public byte IsDeleted { get; set; }
public int CreatedBy { get; set; }
}
}
I have added all references to my project...Am i missing some thing...