[Mono-bugs] [Bug 559333] New: Compile of Fluent NHibernate Project fails: Cannot convert `lambda expression' to non-delegate type
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Nov 30 17:04:08 EST 2009
http://bugzilla.novell.com/show_bug.cgi?id=559333
http://bugzilla.novell.com/show_bug.cgi?id=559333#c0
Summary: Compile of Fluent NHibernate Project fails: Cannot
convert `lambda expression' to non-delegate type
Classification: Mono
Product: Mono: Compilers
Version: 2.4.x
Platform: i386
OS/Version: Ubuntu
Status: NEW
Severity: Major
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: mb at embedit.de
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.9.1.5)
Gecko/20091109 Ubuntu/9.10 (karmic) Firefox/3.5.2
I try to follow this "Getting Started" for fluent NHibernate
http://wiki.fluentnhibernate.org/Getting_started
I created a Terminal Project in Monodevelop, add the files and folders and copy
the Sourcecode from github (links to the files in the bottom right corner of
each box with sourcecode)
If I try to compile the code I get some Error Messages. All Messages are in the
Mapping files. For example:
~/Projects/fluent/fluent/Mappings/EmployeeMap.cs(16,16): Error CS1660: Cannot
convert `lambda expression' to non-delegate type
`System.Linq.Expressions.Expression<System.Func<Examples.FirstProject.Entities.Employee,object>>'
(CS1660) (fluent)
for the line Id(x => x.Id); in EmployeeMap.cs or
~/Projects/fluent/fluent/Mappings/EmployeeMap.cs(13,13): Error CS0411: The type
arguments for method
`FluentNHibernate.Mapping.ClasslikeMapBase<Examples.FirstProject.Entities.Employee>.References<TOther>(System.Linq.Expressions.Expression<System.Func<Examples.FirstProject.Entities.Employee,TOther>>)'
cannot be inferred from the usage. Try specifying the type arguments explicitly
(CS0411) (fluent)
for the line References(x => x.Store);
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list