mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Added setup and refactoring
This commit is contained in:
@@ -1 +1,2 @@
|
||||
setup/setup.sql
|
||||
TodoApp.xproj.user
|
||||
.vs/*
|
||||
@@ -1,11 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Belgrade.SqlClient;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Belgrade.SqlClient;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TodoApp.Controllers
|
||||
{
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Belgrade.SqlClient;
|
||||
using Belgrade.SqlClient.SqlDb;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Belgrade.SqlClient;
|
||||
using Belgrade.SqlClient.Common;
|
||||
using Belgrade.SqlClient.SqlDb;
|
||||
using System.Data.SqlClient;
|
||||
|
||||
namespace TodoApp
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
"Microsoft.Extensions.Logging": "1.0.0-rc2-final",
|
||||
"Microsoft.Extensions.Logging.Console": "1.0.0-rc2-final",
|
||||
"Microsoft.Extensions.Logging.Debug": "1.0.0-rc2-final",
|
||||
"System.Data.SqlClient": "4.1.0-rc2-24027",
|
||||
"System.IO": "4.1.0-rc2-24027"
|
||||
"System.Data.SqlClient": "4.1.0-rc2-24027"
|
||||
},
|
||||
|
||||
"tools": {
|
||||
|
||||
@@ -5404,8 +5404,7 @@
|
||||
"Microsoft.Extensions.Logging >= 1.0.0-rc2-final",
|
||||
"Microsoft.Extensions.Logging.Console >= 1.0.0-rc2-final",
|
||||
"Microsoft.Extensions.Logging.Debug >= 1.0.0-rc2-final",
|
||||
"System.Data.SqlClient >= 4.1.0-rc2-24027",
|
||||
"System.IO >= 4.1.0-rc2-24027"
|
||||
"System.Data.SqlClient >= 4.1.0-rc2-24027"
|
||||
],
|
||||
".NETFramework,Version=v4.6": []
|
||||
},
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
DROP TABLE IF EXISTS Todo
|
||||
|
||||
GO
|
||||
|
||||
CREATE TABLE Todo (
|
||||
Id int IDENTITY PRIMARY KEY,
|
||||
Title nvarchar(30) NOT NULL,
|
||||
Description nvarchar(4000),
|
||||
Completed bit,
|
||||
TargetDate datetime2
|
||||
)
|
||||
|
||||
GO
|
||||
|
||||
INSERT INTO Todo (Title, Description, Completed, TargetDate)
|
||||
VALUES
|
||||
('Install SQL Server 2016','Install RTM version of SQL Server 2016', 0, '2016-06-01'),
|
||||
('Get new samples','Go to github and download new samples', 0, '2016-06-02'),
|
||||
('Try new samples','Install new Management Studio to try samples', 0, '2016-06-02')
|
||||
Reference in New Issue
Block a user