zoukankan      html  css  js  c++  java
  • Scaffold-DbContext 命令参数

    NAME
        Scaffold-DbContext
        
    SYNOPSIS
        Scaffolds a DbContext and entity types for a database.
        
        
    SYNTAX
        Scaffold-DbContext [-Connection]  [-Provider]  [-OutputDir ] [-ContextDir ] [-Context ] [-Schemas <String[]>] [-Tables <String[]>] [-DataAnnotations] 
        [-UseDatabaseNames] [-Force] [-Project ] [-StartupProject ] []
        
        
    DESCRIPTION
        Scaffolds a DbContext and entity types for a database.
        
    
    PARAMETERS
        -Connection 
            The connection string to the database.
            
            Required?                    true
            Position?                    1
            Default value                
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -Provider 
            The provider to use. (E.g. Microsoft.EntityFrameworkCore.SqlServer)
            
            Required?                    true
            Position?                    2
            Default value                
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -OutputDir 
            The directory to put files in. Paths are relative to the project directory.
            
            Required?                    false
            Position?                    named
            Default value                
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -ContextDir 
            The directory to put DbContext file in. Paths are relative to the project directory.
            
            Required?                    false
            Position?                    named
            Default value                
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -Context 
            The name of the DbContext to generate.
            
            Required?                    false
            Position?                    named
            Default value                
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -Schemas <String[]>
            The schemas of tables to generate entity types for.
            
            Required?                    false
            Position?                    named
            Default value                @()
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -Tables <String[]>
            The tables to generate entity types for.
            
            Required?                    false
            Position?                    named
            Default value                @()
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -DataAnnotations []
            Use attributes to configure the model (where possible). If omitted, only the fluent API is used.
            
            Required?                    false
            Position?                    named
            Default value                False
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -UseDatabaseNames []
            Use table and column names directly from the database.
            
            Required?                    false
            Position?                    named
            Default value                False
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -Force []
            Overwrite existing files.
            
            Required?                    false
            Position?                    named
            Default value                False
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -Project 
            The project to use.
            
            Required?                    false
            Position?                    named
            Default value                
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        -StartupProject 
            The startup project to use. Defaults to the solution's startup project.
            
            Required?                    false
            Position?                    named
            Default value                
            Accept pipeline input?       false
            Accept wildcard characters?  false
            
        
            This cmdlet supports the common parameters: Verbose, Debug,
            ErrorAction, ErrorVariable, WarningAction, WarningVariable,
            OutBuffer, PipelineVariable, and OutVariable. For more information, see 
            about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). 
        
    INPUTS
        
    OUTPUTS
        
        
    RELATED LINKS
        about_EntityFrameworkCore 
    
    
    
    
  • 相关阅读:
    [原创]软件性能测试培训
    100w条记录分页,可以有多快?—— DataReader分页与SQL语句分页的对比测试(在线演示)
    【自然框架】注册会员活动——第一份代码的修改建议(第一版)
    加班有几种情况?兼谈讨论的方式。
    衔着树枝飞跃太平洋的傻鸟!(童话版)
    参加活动的好处。
    【自然框架】开源社区活动,会员注册的第一份代码!
    【自然框架】数据访问之精雕细琢(一)存储过程的参数
    自然框架开发系列(一):自然框架 和 AgileEAS.NET 合作,开发b/s的药店系统!
    自然框架开源社区的第一次活动——实现会员注册
  • 原文地址:https://www.cnblogs.com/adandelion/p/10529788.html
Copyright © 2011-2022 走看看