[Mono-dev] Entity framework in mono

Sharique uddin Ahmed Farooqui safknw at gmail.com
Wed Jun 12 08:45:35 UTC 2013


I added EntityFramework.dll in same manner.

BTW, EntityFramework and/or Sysyte.Data.Entity is not displayed on add
reference form.

This time I created bare minimum Console application, I get following
error, should I file bug??

Unhandled Exception:
System.MissingMethodException: Method not found:
'System.Reflection.MethodInfo.CreateDelegate'.
  at System.Linq.Expressions.Compiler.LambdaCompiler.Compile
(System.Linq.Expressions.LambdaExpression lambda,
System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator)
[0x00000] in <filename unknown>:0
  at
System.Linq.Expressions.Expression`1[System.Action`1[System.Data.Entity.DbContext]].Compile
() [0x00000] in <filename unknown>:0
  at System.Data.Entity.Internal.DbSetDiscoveryService.GetSets () [0x00000]
in <filename unknown>:0
  at System.Data.Entity.Internal.DbSetDiscoveryService.InitializeSets ()
[0x00000] in <filename unknown>:0
  at System.Data.Entity.DbContext.DiscoverAndInitializeSets () [0x00000] in
<filename unknown>:0
  at System.Data.Entity.DbContext.InitializeLazyInternalContext
(IInternalConnection internalConnection,
System.Data.Entity.Infrastructure.DbCompiledModel model) [0x00000] in
<filename unknown>:0
  at System.Data.Entity.DbContext..ctor (System.String
nameOrConnectionString) [0x00000] in <filename unknown>:0
  at MonoEntityDemo.DemoContext..ctor () [0x00000] in <filename unknown>:0
  at MonoEntityDemo.MainClass.Main (System.String[] args) [0x00000] in
<filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method
not found: 'System.Reflection.MethodInfo.CreateDelegate'.
  at System.Linq.Expressions.Compiler.LambdaCompiler.Compile
(System.Linq.Expressions.LambdaExpression lambda,
System.Runtime.CompilerServices.DebugInfoGenerator debugInfoGenerator)
[0x00000] in <filename unknown>:0
  at
System.Linq.Expressions.Expression`1[System.Action`1[System.Data.Entity.DbContext]].Compile
() [0x00000] in <filename unknown>:0
  at System.Data.Entity.Internal.DbSetDiscoveryService.GetSets () [0x00000]
in <filename unknown>:0
  at System.Data.Entity.Internal.DbSetDiscoveryService.InitializeSets ()
[0x00000] in <filename
unknown>:0

  at System.Data.Entity.DbContext.DiscoverAndInitializeSets () [0x00000] in
<filename
unknown>:0

  at System.Data.Entity.DbContext.InitializeLazyInternalContext
(IInternalConnection internalConnection,
System.Data.Entity.Infrastructure.DbCompiledModel model) [0x00000] in
<filename
unknown>:0

  at System.Data.Entity.DbContext..ctor (System.String
nameOrConnectionString) [0x00000] in <filename unknown>:0
  at MonoEntityDemo.DemoContext..ctor () [0x00000] in <filename unknown>:0
  at MonoEntityDemo.MainClass.Main (System.String[] args) [0x00000] in
<filename unknown>:0


Sharique uddin Ahmed Farooqui
http://safknw.blogspot.com/
"Peace" is the Ultimate desire of mankind.


On Sun, Jun 9, 2013 at 5:38 PM, Daniel Lo Nigro <lists at dan.cx> wrote:

> Entity Framework 4.3 is one of the release versions. You should be able to
> add the proper reference in MonoDevelop if you browse directly to the
> correct EntityFramework.dll file when adding the reference.
>
>
> On Wed, Jun 5, 2013 at 5:07 PM, Sharique uddin Ahmed Farooqui <
> safknw at gmail.com> wrote:
>
>> I created another project now using MD on Linux, added EntityFramwork.dll
>> manually (don't know why add reference dialog not showing it), now It
>> compile  successfully. On compilation it gives following warning.
>>
>> Warning CS1701: Assuming assembly reference `EntityFramework,
>> Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' matches
>> assembly `EntityFramework, Version=6.0.0.0, Culture=neutral,
>> PublicKeyToken=b77a5c561934e089'. You may need to supply runtime policy
>> (CS1701) (MonoMvc)
>>
>> I don't think there any EntityFramwork  with version 4.3.xx exists.
>>
>> Another thing is I'm not able to run it due to bug in
>> System.Configuration  #11549 (
>> https://bugzilla.xamarin.com/show_bug.cgi?id=11549)
>>
>>
>> Sharique uddin Ahmed Farooqui
>> http://safknw.blogspot.com/
>> "Peace" is the Ultimate desire of mankind.
>>
>>
>> On Tue, Jun 4, 2013 at 5:13 PM, Daniel Lo Nigro <daniel at dan.cx> wrote:
>>
>>>
>>> Mono only supports Entity Framework 6 and support is currently not fully
>>> complete. I suggest looking at NHibernate or a micro ORM like ServiceStack
>>> ORMLite or Dapper instead.
>>> ---
>>> Regards,
>>> Daniel
>>>
>>> Sent from my phone - please excuse any typos.
>>> On 04/06/2013 3:40 PM, "Sharique uddin Ahmed Farooqui" <safknw at gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>> I build pretty basic application using entity framework5 and MVC3 using
>>>> VS2012 Express, it works well.
>>>> I open this application on Linux (OpenSuse 12.3, Mono 3.0.7). It gives
>>>> error
>>>>
>>>> /home/sharique/Projects/my projects/dot
>>>> net/MvcApplication1/MvcApplication1/Controllers/CustomerController.cs(44,44):
>>>> Error CS0103: The name `EntityState' does not exist in the current context
>>>> (CS0103) (MvcApplication1)
>>>>
>>>> --
>>>> Sharique uddin Ahmed Farooqui
>>>> http://safknw.blogspot.com/
>>>> "Peace" is the Ultimate desire of mankind.
>>>>
>>>> _______________________________________________
>>>> Mono-devel-list mailing list
>>>> Mono-devel-list at lists.ximian.com
>>>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>>>
>>>>
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130612/f23569e1/attachment-0001.html>


More information about the Mono-devel-list mailing list