Coder Social home page Coder Social logo

yemrekeskin / datacube Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 729 KB

๐Ÿ” ๐Ÿ”ข Data access layer solution that is fast, featured and reliable for the .NET platform

License: MIT License

C# 83.84% HTML 7.88% CSS 1.20% JavaScript 0.25% TSQL 6.83%
efcore entity-framework-core datacube

datacube's Introduction

DataCube ==^^==

This project contains use-cases exercises and concepts about EntityFrameworkCore. DataCube is data access layer solution that is fast and reliable for the .NET platform.

EF Core Concepts

  • Approaches
    • DatabaseFirst
    • CodeFirst
  • Relationships
    • One-To-Many
    • One-To-One
    • Many-To-Many
  • Conventions
    • Data Annotation
    • Fluent API
  • Scenarios
    • Connected Scenario
    • Disconnected Scenario

Installation from nuget

  • Install-Package Microsoft.EntityFrameworkCore.SqlServer
  • Install-Package Microsoft.EntityFrameworkCore.Design
  • Install-Package Microsoft.EntityFrameworkCore.Tools

EF Core Subjects

  • Modeling
    • Including-Excluding Types
      • [NotMapped] or Ignore
    • Including-Excluding Properties
      • [NotMapped] or Ignore
    • Keys
      • By default Id or (typename)Id
      • [Key] .HasKey
    • Generated Value
      • Data Annotation
        • [DatabaseGenerated(DatabaseGeneratedOption.None)]
        • [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        • [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
      • Fluent API
        • .ValueGeneratedNever();
        • .ValueGeneratedOnAdd();
        • .ValueGeneratedOnAddOrUpdate();
    • Required and Optional Properties
      • [Required] , .IsRequired()
    • Shadow Properties
    • Index
      • .HasIndex(b => b.x) - .IsUnique();
    • Inheritance
    • Backing Fields
    • Keyless Entity Type
    • Value Conversions
      • Enums
      • Microsoft.EntityFrameworkCore.Storage.ValueConversion
      • .HasConversion(converter);
      • [Column(TypeName = "nvarchar(24)")]
  • Data Seeding
  • Manage Database
    • Migration
      • Seperate Project
    • Migration Commands - PMC
      • get-help entityframework
      • Add-Migration [MigrationName]
      • Remove-Migration
      • Update-Database
      • Drop-Database
      • Scaffold-DbContext
      • Script-Migration
    • Scaffolding
      • Generate entities from existing database

Useful Links ๐Ÿ’ฅ

Contribution ๐Ÿ’ช

Pull requests are welcome, but make sure you sign the Contributor License Agreement.

License

DataCube is licensed under the MIT license. Check the LICENSE file for details.

datacube's People

Contributors

yemrekeskin avatar

Watchers

 avatar  avatar

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.