Hi guys!
Is there somethink like a documentation for subsonic 3? I'm just beginning to use it and have a lot of questions.
First up this error message:
"Can't decide which property to consider the Key - you can create one called 'ID' or mark one with SubSonicPrimaryKey attribute"
The code in question is generated by the context.tt:
public SqlQuery Delete<T>(Expression<Func<T,bool>> column) where T:new()
{
LambdaExpression lamda = column;
SqlQuery result = new Delete<T>(this.Provider);
result = result.From<T>();
result.Constraints=lamda.ParseConstraints().ToList();
return result;
}
In my DB the respective table actually has a primary key called ID. And I tried to insert the SubSonicPrimaryKey Attribute:
uint _ID;
[SubSonicPrimaryKey]
public uint ID
{
get { return _ID; }
set
{...
What's wrong? Someone help me out on this one, please.
Cheers, Dug