here is the code:
[ActiveRecord]
public abstract class EntityBase<T> :
ActiveRecordValidationBase<T>
where T : class
{
private string note;
private DateTime createTime;
private int id;
public EntityBase()
{
CreateTime = DateTime.Now;
}
[PrimaryKey]
public int Id
{
get { return id; }
set { id = value; }
}
[Property]
public string Note
{
get { return note; }
set { note = value; }
}
[Property]
public DateTime CreateTime
{
get { return createTime; }
set { createTime = value; }
}
}
[ActiveRecord]
public class Customer : EntityBase<Customer>
{
#region fields
private string name;
private bool isSupplier;
private bool isBuyer;
private int importance;
#endregion
[Property]
public string Name
{
get { return name; }
set { name = value; }
}
[Property]
public bool IsSupplier
{
get { return isSupplier; }
set { isSupplier = value; }
}
[Property]
public bool IsBuyer
{
get { return isBuyer; }
set { isBuyer = value; }
}
[Property]
public int Importance
{
get { return importance; }
set { importance = value; }
}
public override string ToString()
{
return name;
}
}
And the controller:
[Scaffolding(typeof(Customer))]
public class CustomerController : SmartDispatcherController
{
}
--
Cheers,
hamilton verissimo
ham...@castlestronghold.com
http://www.castlestronghold.com/
I don't understand how to resolve the problem. I have just given up on
using the generic base class - which is annoying. Must I build
monorail/castle from source? Is this something to do with the build
server compiling against the old proxy. I tried changing my references
to dp2, but this didn't seem to affect anything.
Mark