Sure you can do it like this:
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ output extension="aspx.cs" #>
<# var crudObject= "Customer";
var plural = crudObject+"s"; #>
[WebMethod]
public string Get<#=plural#>(int page)
{
return db.<#=plural#>.Skip(page*100).Take(100);
}
[WebMethod]
public string Delete<#=crudObject#>(int id)
{
// ...
}