views:

256

answers:

1

i am trying to do the "getting started" from castle active record, now i got into this problem could not execute query exception

select count(*) as col_0_0_ from User user0_ where 1=1 //it's SQL Server 2008

question: can i somehow make castle put the table name into [ ] like [User]

+2  A: 

In the [ActiveRecord] attribute, you can define the name of the table. Example:

[ActiveRecord("[User]")]
public class User : ActiveRecordBase<User>
Patrick Steele