<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ output extension=".cs" #>


<# string tablename = @"T_CHARGE_UNIT_TYPE"; #>

<#
            string str = @"次,片数,单侧,单颌,每片,每牙,每根管,每人次,每部位,没动,每部位/次,一亚类,每2mm,每2mm缺隙,每卡环,面积5+5,每件,每附着体,每区段,每幅";
            var properties = str.Split(','); #>

<# int i=0; #>

<# foreach (string propertyName in properties)

{ #>
INSERT [dbo].[<#= tablename #>] ([VALUE], [TEXT]) VALUES ( <#= i #>, N'<#= propertyName #>')
<#
    i++;
} #>



本文转载:CSDN博客