SQL2k+VS2005
MyCode:
Code:
private void Form1_Load(object sender, EventArgs e)
{
Configuration cfg = new Configuration();
cfg.AddAssembly("NHClass");
ISessionFactory factory = cfg.BuildSessionFactory();
Error at line :cfg.BuildSessionFactory()
Error Message :
Type 'NHClass.Post' cannot be specified as proxy: method get_PostID should be virtualI'm sure I never setup any proxy.....
Class Post:
Code:
using System;
using System.Collections;
namespace NHClass
public class Post
{...
Post.hbm.xml:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="NHClass.Post, NHClass" table="nh_posts">
<id name="PostID" column="PostID" type="Guid">
<generator class="assigned" />
</id>
...
Please!