最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

entity framework - File standard for defining entities and relationships - Stack Overflow

programmeradmin3浏览0评论

Is there some modern standard for defining entity and relationship scheme?

Microsoft's Entity Framework uses an XML-based SDL which can represent pretty much everything needed, but it is older and I don't see tool support for it other than EF itself.

OpenAPI is YAML based and more modern. It has good support for describing entity types and has good tool support, but it seems to lack the ability to describe relationships.

I am looking for some standard format that has good tool support, which can be used to generate code in different languages.

Is there some modern standard for defining entity and relationship scheme?

Microsoft's Entity Framework uses an XML-based SDL which can represent pretty much everything needed, but it is older and I don't see tool support for it other than EF itself.

OpenAPI is YAML based and more modern. It has good support for describing entity types and has good tool support, but it seems to lack the ability to describe relationships.

I am looking for some standard format that has good tool support, which can be used to generate code in different languages.

Share Improve this question edited Mar 17 at 15:06 genpfault 52.2k12 gold badges91 silver badges151 bronze badges asked Mar 16 at 23:49 Rudiger W.Rudiger W. 8689 silver badges13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

We can use GraphQL SDL to define entities and relationships in a clear, modern way, like a User type with a posts: [Post] field for a one-to-many link. It’s easy to read and uses graphql-codegen to generate code in languages like TypeScript, Java, or Python. Just write your schema, run the tool, and get your code

发布评论

评论列表(0)

  1. 暂无评论