Giter Site home page Giter Site logo

goodtocode / entity Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 10.35 MB

Common domain entities for any type of application. I.e. Person, Event, Location, etc.

License: Apache License 2.0

HTML 3.70% C# 64.06% PowerShell 10.32% Batchfile 1.69% CSS 1.10% JavaScript 0.02% TSQL 19.11%

entity's Introduction

GoodToCode Entities

Shared repository of common entities and processes.

Features & Benefits

GoodToCode Entities helps you create your business-object framework with standard C# knowledge and minimal plumbing. Your objects can migrate full-stack, and be consumed in MVC, Web API, WPF, UWP and Xamarin iOS/Android. Works with your existing SQL tables, and allows you to incrementally build your reusable Framework one object, one page at a time.

Projects included in the GoodToCode Entities

Entity.DataAccess - Entity Framework (EF)/Data Access Object (DAO) project. Contains EF (database first), Data Access Objects, CRUDEntity, ModelEntity, EntityReader and EntityWriter.

Entity.Models - Cross-Platform View Models project. Contains the Framework-level view models for http transport and .Serialize() built-in.

Entity.Abstractions - Cross-Platform Interface project. All projects reference this project so that interfaces are enforced in all tiers, and on mobile device as well.

Entity.Web - MVC and Web API support project. Contains UI/UX classes and user controls.

Entity.Universal - UWP and Xamarin support project. Contains UI/UX classes and user controls.

Entity.Desktop - WPF and WinForms support project. Contains UI/UX classes and user controls.


More information

Critical Next Steps

❶ Install .NET Core SDK [download]
❷ Update Visual Studio [download]
❸ Build solution to verify .NET Core


Developer Next Steps

❶ Right-click -> Set as Startup Project

❷ Press F5 to run debugger

❸ Click Search to lookup a customer

Frequently Asked Questions

Where is the DB connection string?

  1. Open \App_Data\ConnectionStrings.json
  2. Change DefaultConnection to match your DB

Where is the Web Service Url?

  1. Open \App_Data\AppSettings.json
  2. Change MyWebService to match your Url

How to read from my database?

  1. Open Entity.Database\ CustomerCode\ Views\ CustomerInfo.sql
  2. Change this view to join to your "Person" table

How to write to my database?

  1. Open Entity.Database\ CustomerCode\ Stored Procedures\ CustomerInsert.sql
  2. Change this SP to insert to your "Person" table

How to publish the database?

  1. Open Entity.Database\Publish\PublishToDev.publish.xml (Ensure database connection is correct)
  2. Click Generate Script and review
  3. Click Publish to push changes to SQL

How to publish to a web server?

  1. In Solution Explorer, right-click Entity.WebApp
  2. Click Publish, the Publish window will display
  3. Click the Settings... link in the Publish window
  4. Change Target Location to the dev web site folder path, click Save
  5. Click Publish to publish the project to your development web server
GoodToCode

22431 Antonio, Suite B160-843
Rancho Santa Margarita, CA 92688
+1 949.544.1900

goodtocode.com | @GoodToCode

entity's People

Contributors

goodtocode avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

lanicon

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.