понедельник, 24 октября 2016 г.

EF Data Annotations NEW

sp_executesql

exec sp_executesql N'UPDATE [dbo].[Students]
SET [StudentName] = @0
WHERE (([StudentId] = @1) AND ([StudentName] = @2))
',N'@0 nvarchar(max) ,@1 int,@2 nvarchar(max) ',@0=N'Steve',@1=1,@2=N'Bill'
go

exec sp_executesql
N'UPDATE [dbo].[Students]
SET [StudentName] = @0
WHERE (([StudentId] = @1) AND ([StudentName] = @2))',
N'@0 nvarchar(max) , @1 int, @2 nvarchar(max)  ',
 @0=N'Steve', @1=1, @2=N'Bill'
GO

EF Data Annotations NEW

EF Data Annotations NEW

EF DateTime to Date MS SQL Field

воскресенье, 2 октября 2016 г.

gitlab new

Git global setup

git config --global user.name ""
git config --global user.email ""

Create a new repository

git clone https://gitlab.com/groupe/gs.git
cd gs
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Existing folder or Git repository

cd existing_folder
git init
git remote add origin https://gitlab.com/groupe/gs.gitgit add .
git commit
git push -u origin master
2222222222222222

Git global setup

git config --global user.name ""
git config --global user.email ""

Create a new repository

git clone https://gitlab.com/user/gs.trade.git
cd gs.trade
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Existing folder or Git repository

cd existing_folder
git init
git remote add origin https://gitlab.com/user/gs.trade.git
git add .
git commit
git push -u origin master