Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EF2.2 #77

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

EF2.2 #77

wants to merge 9 commits into from

Conversation

bnemetchek2
Copy link

Entity FrameWork 2.2. Odata rather than JSON. MetaData is formatted in EF6 style.

[HttpGet]
        [Produces("text/plain")] // this will return the raw JSON without the quotes
        public IActionResult MetaData()
        {
            //var oldMeta = _contextProvider.Metadata();
            //return Ok(oldMeta);
            //dynamic parsedJson = Newtonsoft.Json.JsonConvert.DeserializeObject(oldMeta);
            //Newtonsoft.Json.JsonConvert.SerializeObject(parsedJson, Formatting.Indented);

            var metaDataString = Breeze.Persistence.EFCore.MetadataBuilder_EFC2.GetMetadataFromContext(_context);
            return Ok(metaDataString);
        }

Use EnableBreezeQuery I.e.,

[Produces("application/json")]
    [Route("breeze/[controller]/[action]")]
    //[BreezeQueryFilter]
    [EnableBreezeQuery]
    public partial class MyController : ODataController
    {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants