Repodb: Question: Generate Pocos

Created on 22 Jan 2021  Â·  10Comments  Â·  Source: mikependon/RepoDB

Hello
Do you have or can recommend a generator that can generate Classes based on tables / Views / Stored procedures in the MS Sql Database?
Thanks

question

All 10 comments

Yes, I am in collaboration with @ErikEJ using his EF Power Tools. It is strongly recommended.

Our request has just been completed.

I will try to create a wiki post called something like: "Generating pure POCO classes"

Only remaining issue is to avoid Navigation properties.

Latest daily build of EF Core Power Tools includes the following features, that should help with "pure POCO" code generation:

  • Experimental support for nullable reference types, use "UseNullableReferences": true in efpt.config.json to enable
  • Experimental support for entity classes without constructor (so you can manage all constructors in a partial class), use "UseNoConstructor": true in efpt.config.json to enable
  • Experimental support for entity classes without navigations & constructor (for pure POCO classes for use with RepoDB, Dapper etc.), use "UseNoNavigations": true in efpt.config.json to enable

https://github.com/ErikEJ/EFCorePowerTools/wiki/Release-notes

I will try to create a wiki post called something like: "Generating pure POCO classes"
I downloaded v 2.5.454, used the reverse engineer, and received EF type of POCOS.
How can I create PURE POCOs as I am not using EF at all and just need the members?
Thanks

@myalo You need the latest daily build, then follow the release notes in the link above.

Thanks a lot @ErikEJ for this support. I will share your tool to PHINUG as well.

Closing this one now.

Thanks

From: Michael Camara Pendon notifications@github.com
Sent: Saturday, February 6, 2021 12:53 PM
To: mikependon/RepoDB RepoDB@noreply.github.com
Cc: Moshe Yalovsky myalo@yalo.com; Mention mention@noreply.github.com
Subject: Re: [mikependon/RepoDB] Question: Generate Pocos (#751)

Closing this one now.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/mikependon/RepoDB/issues/751#issuecomment-774541766, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAF4USDTBPLBXXPMZFPEBZLS5WTY5ANCNFSM4WPEY3YQ.

Was this page helpful?
0 / 5 - 0 ratings