Fluent NHibernate Mappings ClassMap<Entities>....

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-06-10T06:58:43Z Indexed on 2010/06/10 7:03 UTC
Read the original article Hit count: 208

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

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about fluent-nhibernate