Giter Club home page Giter Club logo

Comments (4)

hueifeng avatar hueifeng commented on June 26, 2024

Hello, I am late and have not done any operation for the EDM of OData.

private static IEdmModel GetEdmModel()
{
  var builder = new ODataConventionModelBuilder();
  builder.EntitySet<Book>("Books");
  return builder.GetEdmModel();
}
<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
  <edmx:DataServices>
    <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="Default">
      <EntityType Name="Book">
        <Key>
          <PropertyRef Name="Id"/>
        </Key>
        <Property Name="Id" Type="Edm.Int32" Nullable="false"/>
      </EntityType>
      </EntityContainer>
    </Schema>
  </edmx:DataServices>
</edmx:Edmx>

As shown above, what you said way of EDM is introduced into?

from abp.dynamicentity.

sNakiex avatar sNakiex commented on June 26, 2024

Hello, let me try to clarify.
Let's say the Book entity is a dynamic entity. Just like the computer entity in your sample project.
It would be really sweet if you could use that computer model in the API just like a regular model.
So you could create add a new computer to the database by doing a post to /api/Computer

from abp.dynamicentity.

gdlcf88 avatar gdlcf88 commented on June 26, 2024

Hi @sNakiex, the DynamicEntity module doesn't have separated HTTP APIs for each entity.

DynamicEntityAppService provides unified APIs for them.

But I'm sure you'll be interested in the EntityUi module, which provides real-time generated CRUD pages. It supports traditional entities and dynamic entities.

See: https://github.com/EasyAbp/Abp.EntityUi

from abp.dynamicentity.

sNakiex avatar sNakiex commented on June 26, 2024

Sorry for the late response, I haven't really had a lot of free time ^^
Would it be worthwhile to invest some time into researching if this is possible?

from abp.dynamicentity.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.