Re: Exception using EntityFramework 5
DrGusman <[email protected]>
| Newsgroups | gmane.comp.gnome.mono.general |
|---|---|
| Message-ID | <CAMYxFoYS=m9V5jp+=yH8cSU_hjMOO3wp12G1KV4aD4yDMLxQgA@mail.gmail.com> |
Hi Jonathan. I'm trying to use MySQL connector, and still had no luck. I already tried to extract the metadata to files but with no luck, the same exception is thrown. I think it's an issue with the provider descriptor embedded in the mysql ef library. 2015-05-07 10:49 GMT+02:00 mugginsoft [via Mono] < [email protected]>: > 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 <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=4665874&i=0>> 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 - [hidden email] > <http:///user/SendEmail.jtp?type=node&node=4665874&i=1> > > http://lists.ximian.com/mailman/listinfo/mono-list > > _______________________________________________ > Mono-list maillist - [hidden email] > <http:///user/SendEmail.jtp?type=node&node=4665874&i=2> > http://lists.ximian.com/mailman/listinfo/mono-list > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://mono.1490590.n4.nabble.com/Exception-using-EntityFramework-5-tp4665872p4665874.html > To unsubscribe from Exception using EntityFramework 5, click here > <http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4665872&code=Z2VuaXdhYkBnbWFpbC5jb218NDY2NTg3MnwtMTI0ODA0NjEwMA==> > . > NAML > <http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://mono.1490590.n4.nabble.com/Exception-using-EntityFramework-5-tp4665872p4665875.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