You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassSong{publiclongId{get;set;}publicstringName{get;set;}}publicclassAuthor{publiclongId{get;set;}publiclongSongId{get;set;}publicstringName{get;set;}}publicclassTestDbContext:DbContext{publicTestDbContext(IFreeSqlorm):base(orm,null){}publicDbSet<Song> Songs {get;set;}publicDbSet<Author> Authors {get;set;}}
......
IFreeSqlfsql= ......
var context =new TestDbContext(fsql);varsql= context.Songs
.Where(a => context.Authors//.Select //加上这句就不报错,不加上报 variable 'a' of type 'Song' referenced from scope '', but it is not defined.Where(b => b.SongId == a.Id).Any()).ToSql(a => a.Name);
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: