/DBEntityMocker

A program to generate object hydrating from a bdd and reflexion

Primary LanguageC#

DBEntityMocker

pipeline status coverage report GitHub license

DBEntityMocker, because sometime it's boring to prepare large data for unit tests, i have develop a litle software that extract data from a existing database with a specifiq SQL request and generate code to hydrate mock object in C#.

Getting Started

  • Don't work currently for .NET core.
  • Open app.config and set connection string to the database source.
      <add name="DefaultConnection" connectionString="..." />
</connectionStrings>
  • Open a .NET dll where a DBContext derived class is implemented. Often it's where is located the .edmx file.

  • Select an entity with the combobox.

  • Edit the sql request to get data you want use to hidrate.

  • Press Okay button.

  • Enjoy from automated hydrating code.

Built With

Visual Studio 2017 - .NET Framework 4.6

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use GIT for versioning. For the versions available, see the tags on this repository.

Team

Quentin Martinez @AzRunRCE
 Quentin Martinez @AzRunRCE
github.com/AzRunRCE

License

This project is licensed under the MIT License - see the license.md file for details

Donations

  • AzRun BTC 1HP2GCUkZv4f5hVEamnUHfBNfcy2HGWYot