use Castle.ActiveRecord
class MapTestWhere
has ActiveRecord("map")
pro foos as Foo*
has HasMany(where ="foo.bar = 1")
class Foo
has ActiveRecord("foo")
pro key from var as Guid
has PrimaryKey
pro bar from var as String
has Property
class Program
shared
def main
pass
giving
- Code: Select all
test.cobra(7): error: test.cobra(7,15): error: Expecting an expression. "where" is a reserved keyword that is not expected here.
Compilation failed - 1 error, 0 warnings
Not running due to errors above.
I need to use Where property setter in the attribute constructor, is there any workaround?