Questions tagged [csdl]

Common Schema Definition Language(CSDL) is an XML dialect which describes the structure of an OData service.

CSDL defines the data structures, data mappings, and function protocols exposed by an OData service with a hierarchy of legal namespaces, element types, and attribute types.

References

15 questions
6
votes
2 answers

EntitySet System.InvalidOperationException - "the entity type is not part of the model for the current context"

Similar Questions The entity type is not part of the model for the current context -and- EF 4.1 Code First error - The entity type SomeType is not part of the model for the current context are similar questions but they are "code first"…
one.beat.consumer
  • 9,414
  • 11
  • 55
  • 98
4
votes
1 answer

Running transformation failed due to unknown namespace with keyword "using"

I would like to use the "Using" element in my *.csdl in order to import a other namespace, and use POCO to transform the objects. I use a CSDL looks like this:
Sam
  • 687
  • 1
  • 6
  • 14
3
votes
1 answer

Entity Framework - Entity Mapping problem

I have two tables: Address and Contact which are joined on contactID (in Contact). Both of these tables have entities in my Entity data model (EF 4.0) and I do not wan't to modify them. I do want to create a new entity that contains information from…
Chris Klepeis
  • 9,783
  • 16
  • 83
  • 149
2
votes
0 answers

C# OData CsdlWriter always generates empty XML

I'm trying to generate CSDL xml suitable for an OData $metadata endpoint, however I am not using Entity Framework or anything similar. Currently I just want to generate the $metadata XML document for a small set of ~3 classes... My code looks like…
GoatInTheMachine
  • 3,583
  • 3
  • 25
  • 35
2
votes
1 answer

OData schema generator for Django (CSDL)

Is there an existing library to generate CSDL documents (optionally wrapped in EDMX) from Django models? The end goal is for use in an OData provider. CSDL: http://www.odata.org/media/30002/OData%20CSDL%20Definition.html#csdl12.1 Example:…
Steve Bennett
  • 114,604
  • 39
  • 168
  • 219
1
vote
1 answer

OData description language

I'm wondering what are advantages of edmx/csdl over wsdl 2.0 and wadl that Microsoft has choosen it for OData. Any ideas?
user1121956
  • 1,843
  • 2
  • 20
  • 34
1
vote
2 answers

How to programatically generate CSDL or EDMX from a set of existing POCO objects

I'd like to simulate what WCF Data Services does with it's "$metadata" tag... that is, send a CSDL document that describes an existing set of objects that may (or may not) be part of an Entity Framework model. In fact, assume the EF is not part of…
Simon Gillbee
  • 3,932
  • 4
  • 35
  • 48
1
vote
1 answer

Frequently Updated CSDL query in DataSift

Our DataSift CSDL query looks this way: List keywords=dbAccess.GetAllKeywords(); // there are 100K+ of them string csKwList="\""+String.Join(",", keywords)+"\""; string csdl = "facebook.message contains_any…
AstroSharp
  • 1,872
  • 2
  • 22
  • 31
1
vote
2 answers

No schema encountered with 'Base' namespace when running POCO entity generator with a CSDL file which imports a namespace from another CSDL file

I'm getting this error "No schema encountered with 'Base' namespace" when running POCO entity generator with a CSDL file which imports a namespace from another CSDL file. Both CSDL files have been moved to different folders outside the project…
razp26
  • 191
  • 3
  • 17
0
votes
0 answers

Unsigned integer type in OData?

Is there a way to specify unsigned integers in the OData Metadata (CSDL) format? I have a data structure that contains an unsigned 64 bit integer, but from the documentation here it seems there isn't a choice for unsigned integers? What are my…
jonathan_ou
  • 756
  • 1
  • 7
  • 17
0
votes
0 answers

Generate C# class(.cs) model files from .csdl files

I have a .csdl file downloaded and am trying to convert them to model class files (.cs). I tried edmgen which did not work because I was using "http://docs.oasis-open.org/odata/ns/edm" as the schema. When i use edmgen with the command mentioned in…
HEART94
  • 307
  • 2
  • 10
0
votes
2 answers

EF4: How to generate: .csdl, .edmx, .msl and .ssdl files

I'm working on a project that is using linq to sql. In my model folder I have 4 files: model.csdl model.edmx model.msl model.ssdl But that model is out of date with the current database. I'm wondering how I can update the model, via an automate…
bruno
  • 1,830
  • 2
  • 22
  • 36
0
votes
2 answers

Unable to parse CSDL

I'm using CsdlReader in C# to parse a csdl. The whole XML file is as follows:
Zhao
  • 2,043
  • 1
  • 17
  • 36
0
votes
1 answer

Can't resolve a Table Valued Function in EF6.1 Entity SQL

I've been spinning my wheels on this for the last couple days and can't pin down what I'm doing wrong. I'm trying to setup a TVF that I can call in esql. I started using this as my guide, updating the details to 6.1.1 as needed. All my efforts…
0
votes
1 answer

OData metadata and Entity Framework 7

OData's $metadata is based on EDM/CSDL, but with Entity Framework 7, EDMX is going away, replaced with code-first (or whatever they decide to call it). This makes me wonder about using $metadata and the related CSDL spec, which might be at a dead…