This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Add-Migration {name} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | IF EXISTS(SELECT * FROM sysobjects where id = object_id(N'<schema>.<view>') and OBJECTPROPERTY(id, N'IsView') = 1) | |
| DROP VIEW <schema>.<view> | |
| GO | |
| CREATE VIEW dbo.vw_Mon_Casino | |
| AS | |
| GO | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | IF EXISTS(SELECT * FROM sysobjects where id = object_id(N'<schema>.<procedureName>') and OBJECTPROPERTY(id, N'IsProcedure') = 1) | |
| DROP PROCEDURE <schema>.<procedureName> | |
| GO | |
| CREATE PROCEDURE <schema>.<procedureName> <@parameters | |
| AS | |
| BEGIN | |
| END | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | DECLARE @ProductTotals TABLE | |
| ( | |
| ProductID int, | |
| Revenue money | |
| ) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ;WITH cte_1 AS | |
| ( | |
| ),cte_2 AS | |
| ( | |
| ) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ;WITH cte_1 AS | |
| ( | |
| ) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <configuration> | |
| <system.web> | |
| <customErrors mode="Off"/> | |
| </system.web> | |
| </configuration> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | white-space: nowrap; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | group x by new { x.Column1, x.Column2 } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using (var db = new ___DBContext()) | |
| { | |
| var ___ = (from x in ___Includes(db.___) | |
| where x.Id == id | |
| select x).FirstOrDefault(); | |
| return ___; | |
| } |