我的创建表代码如:
path="this/path/I/want/in/new/script"
echo "#### Setting up post-receive hooks ####"
cd hooks
cat >post-receive <<EOF
#!/bin/sh
read oldrev newrev ref
branchname=\${ref#refs/heads/}
GIT_WORK_TREE=$path git checkout \${branchname} -f
EOF
chmod +x post-receive
当我使用linq to sql插入值时,这条消息就出来了
服务器无法生成类型
CREATE TABLE [dbo].[DeTai]( [ID] [int] IDENTITY(1,1) NOT NULL, [MaDeTai] AS ('DT'+right('000000'+CONVERT([varchar](10),[ID]),(6))) PERSISTED NOT NULL, [TenDeTai] [nvarchar](255) NOT NULL, [LinhVuc] [nvarchar](255) NOT NULL, [Nam] [int] NOT NULL, [MaGV] [varchar](8) NOT NULL, )
的主键列。
我该怎么办?
答案 0 :(得分:0)
你必须指定主键,设置身份是不够的
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<html>
<head>
</head>
<body>
</body>
</html>