New version: v3 preview

Coordinator
Dec 9, 2009 at 5:08 AM

Grab it while it's hot! We're picking CSK development back up. Join in the new community!

Dec 20, 2009 at 12:56 AM

Looks good.  I'm having trouble with the Admin code however.

 

var role = scope.UnitOfWork.RepositoryFor<ClubStarterKit.Domain.User>()
                                           .First(r => r.RoleName == Constants.AdminRole);

 

gives an error:

Error    2    'ClubStarterKit.Domain.User' does not contain a definition for 'RoleName' and no extension method 'RoleName' accepting a first argument of type 'ClubStarterKit.Domain.User' could be found (are you missing a using directive or an assembly reference?)    C:\Development\DotNetLib\ClubStarterKit\ClubStarterKit.Web\Global.asax.cs    59    58    ClubStarterKit.Web

 

Coordinator
Dec 20, 2009 at 1:26 AM

Was this copied from the install docs? Looks like a typo. Should be RepositoryFor<ClubStarterKit.Domain.Role>

var role = scope.UnitOfWork.RepositoryFor<ClubStarterKit.Domain.Role>().First(r => r.RoleName == Constants.AdminRole);