EF6 runs great on OS X - in 64 bit mode too - using the System.Data.SQLite data provider. Our object model is reasonably complex.
My setup is: Get EF6 from Nuget Mono 3.2.3 - a bit ancient I know - something more modern would be better Runtime v4.0.30319 You have to supply metadata specifying the individual EDMX component paths metadata=./edmxResourcesToEmbed/BrightPay.csdl|./edmxResourcesToEmbed/BrightPay.ssdl|./edmxResourcesToEmbed/BrightPay.msl;provider=System.Data.SQLite Jonathan > On 7 May 2015, at 05:14, DrGusman <[email protected]> wrote: > > Ok, I have changed my project to use EF6 instead of EF5, and now the error is > different: > > Exception processing petition: minLength is greater than maxLength. Related > schema item SourceUri: , Line 363, Position 14. - at > System.Xml.Schema.ValidationHandler.RaiseValidationEvent > (System.Xml.Schema.ValidationEventHandler,System.Exception,string,System.Xml.Schema.XmlSchemaObject,object,string,System.Xml.Schema.XmlSeverityType) > <0x000ec> > at System.Xml.Schema.XmlSchemaObject.error > (System.Xml.Schema.ValidationEventHandler,string,System.Exception,System.Xml.Schema.XmlSchemaObject,object) > <0x0004f> > at System.Xml.Schema.XmlSchemaObject.error > (System.Xml.Schema.ValidationEventHandler,string) <0x0003f> > at System.Xml.Schema.XmlSchemaSimpleTypeRestriction.checkMaxLengthFacet > (System.Xml.Schema.XmlSchemaMaxLengthFacet,System.Xml.Schema.XmlSchemaFacet/Facet,System.Xml.Schema.ValidationEventHandler) > <0x007c7> > at System.Xml.Schema.XmlSchemaSimpleTypeRestriction.Validate > (System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema) > <0x00aeb> > at System.Xml.Schema.XmlSchemaSimpleType.Validate > (System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema) > <0x000df> > at System.Xml.Schema.XmlSchemaAttribute.Validate > (System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema) > <0x001d3> > at System.Xml.Schema.XmlSchemaUtil.ValidateAttributesResolved > (System.Xml.Schema.XmlSchemaObjectTable,System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema,System.Xml.Schema.XmlSchemaObjectCollection,System.Xml.Schema.XmlSchemaAnyAttribute,System.Xml.Schema.XmlSchemaAnyAttribute&,System.Xml.Schema.XmlSchemaAttributeGroup,bool) > <0x0074b> > at System.Xml.Schema.XmlSchemaAttributeGroup.Validate > (System.Xml.Schema.ValidationEventHandler,System.Xml.Schema.XmlSchema) > <0x001fb> > at System.Xml.Schema.XmlSchema.Validate > (System.Xml.Schema.ValidationEventHandler) <0x0034f> > at System.Xml.Schema.XmlSchemaSet.Compile () <0x006fb> > at > System.Data.Entity.Core.SchemaObjectModel.Schema/SomSchemaSetHelper.ComputeSchemaSet > (System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption) <0x00183> > at > System.Data.Entity.Core.Common.Utils.Memoizer`2/<>c__DisplayClass2<System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption, > System.Xml.Schema.XmlSchemaSet>.<Evaluate>b__0 () <0x0002b> > at > System.Data.Entity.Core.Common.Utils.Memoizer`2/Result<System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption, > System.Xml.Schema.XmlSchemaSet>.GetValue () <0x00077> > at > System.Data.Entity.Core.Common.Utils.Memoizer`2<System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption, > System.Xml.Schema.XmlSchemaSet>.Evaluate > (System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption) <0x001db> > at > System.Data.Entity.Core.SchemaObjectModel.Schema/SomSchemaSetHelper.GetSchemaSet > (System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption) <0x0002f> > at System.Data.Entity.Core.SchemaObjectModel.Schema.CreateXmlReaderSettings > () <0x000f3> > at System.Data.Entity.Core.SchemaObjectModel.Schema.Parse > (System.Xml.XmlReader,string) <0x00027> > at System.Data.Entity.Core.SchemaObjectModel.SchemaManager.ParseAndValidate > (System.Collections.Generic.IEnumerable`1<System.Xml.XmlReader>,System.Collections.Generic.IEnumerable`1<string>,System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption,System.Data.Entity.Core.SchemaObjectModel.AttributeValueNotification,System.Data.Entity.Core.SchemaObjectModel.AttributeValueNotification,System.Data.Entity.Core.SchemaObjectModel.ProviderManifestNeeded,System.Collections.Generic.IList`1<System.Data.Entity.Core.SchemaObjectModel.Schema>&) > <0x00253> > at System.Data.Entity.Core.SchemaObjectModel.SchemaManager.ParseAndValidate > (System.Collections.Generic.IEnumerable`1<System.Xml.XmlReader>,System.Collections.Generic.IEnumerable`1<string>,System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption,System.Data.Entity.Core.Common.DbProviderManifest,System.Collections.Generic.IList`1<System.Data.Entity.Core.SchemaObjectModel.Schema>&) > <0x001ff> > at System.Data.Entity.Core.Metadata.Edm.EdmItemCollection.LoadItems > (System.Collections.Generic.IEnumerable`1<System.Xml.XmlReader>,System.Collections.Generic.IEnumerable`1<string>,System.Data.Entity.Core.SchemaObjectModel.SchemaDataModelOption,System.Data.Entity.Core.Common.DbProviderManifest,System.Data.Entity.Core.Metadata.Edm.ItemCollection,bool) > <0x00077> > at System.Data.Entity.Core.Metadata.Edm.EdmItemCollection.Init > (System.Collections.Generic.IEnumerable`1<System.Xml.XmlReader>,System.Collections.Generic.IEnumerable`1<string>,bool) > <0x00057> > at System.Data.Entity.Core.Metadata.Edm.EdmItemCollection..ctor > (System.Collections.Generic.IEnumerable`1<System.Xml.XmlReader>,System.Collections.Generic.IEnumerable`1<string>,bool) > <0x000c3> > at System.Data.Entity.Core.Metadata.Edm.MetadataCache.LoadEdmItemCollection > (System.Data.Entity.Core.Metadata.Edm.MetadataArtifactLoader) <0x0007b> > at > System.Data.Entity.Core.Metadata.Edm.MetadataCache/<>c__DisplayClass5.<GetMetadataWorkspace>b__0 > (string) <0x0005f> > at System.Collections.Concurrent.ConcurrentDictionary`2<string, > System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace>.GetOrAdd > (string,System.Func`2<string, > System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace>) <0x00067> > at System.Data.Entity.Core.Metadata.Edm.MetadataCache.GetMetadataWorkspace > (string,System.Data.Entity.Core.Metadata.Edm.MetadataArtifactLoader) > <0x00107> > at System.Data.Entity.Core.Metadata.Edm.MetadataCache.GetMetadataWorkspace > (System.Data.Entity.Core.EntityClient.Internal.DbConnectionOptions) > <0x0006f> > at > System.Data.Entity.Core.EntityClient.EntityConnection.GetMetadataWorkspace > () <0x00043> > at > System.Data.Entity.Core.Objects.ObjectContext.RetrieveMetadataWorkspaceFromConnection > () <0x00033> > at System.Data.Entity.Core.Objects.ObjectContext..ctor > (System.Data.Entity.Core.EntityClient.EntityConnection,bool,System.Data.Entity.Core.Objects.Internal.ObjectQueryExecutionPlanFactory,System.Data.Entity.Core.Common.Internal.Materialization.Translator,System.Data.Entity.Core.Query.InternalTrees.ColumnMapFactory) > <0x004cb> > at System.Data.Entity.Core.Objects.ObjectContext..ctor > (System.Data.Entity.Core.EntityClient.EntityConnection) <0x00037> > at > System.Data.Entity.Internal.InternalConnection.CreateObjectContextFromConnectionModel > () <0x000e3> > at > System.Data.Entity.Internal.LazyInternalConnection.CreateObjectContextFromConnectionModel > () <0x0001b> > at System.Data.Entity.Internal.LazyInternalContext.InitializeContext () > <0x0016b> > at System.Data.Entity.Internal.InternalContext.Initialize () <0x0001b> > at > System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType > (System.Type) <0x00017> > at > System.Data.Entity.Internal.Linq.InternalSet`1<UcarusBackOffice.Dispositivo>.Initialize > () <0x0004b> > at > System.Data.Entity.Internal.Linq.InternalSet`1<UcarusBackOffice.Dispositivo>.get_InternalContext > () <0x0001f> > at > System.Data.Entity.Infrastructure.DbQuery`1<UcarusBackOffice.Dispositivo>.System.Linq.IQueryable.get_Provider > () <0x00063> > at System.Linq.Queryable.Where<UcarusBackOffice.Dispositivo> > (System.Linq.IQueryable`1<UcarusBackOffice.Dispositivo>,System.Linq.Expressions.Expression`1<System.Func`2<UcarusBackOffice.Dispositivo, > bool>>) <0x0003f> > at UcarusClientApi.Resources.DeviceManagement.DeviceCanActivate > (SDRestFramework.RESTRequest) <0x00433> > at UcarusClientApi.Resources.DeviceManagement.GetProcessor > (SDRestFramework.RESTRequest) <0x00077> > at (wrapper dynamic-method) object. (object,object[]) <0x00067> > at SDRestServer.SDRestServerCommon.ExecuteRequest > (SDRestFramework.RESTRequest,SDRestFramework.RESTResourceInfo[],SDRestFramework.RESTRequestFilter[],SDRestFramework.RESTResourceFilter[],SDRestFramework.RESTResponseFilter[]) > <0x00607> > > > Does entity framework work on current mono version? > > > > -- > View this message in context: > http://mono.1490590.n4.nabble.com/Exception-using-EntityFramework-5-tp4665872p4665873.html > Sent from the Mono - General mailing list archive at Nabble.com. > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
