(SQL) SQL (2014)

New SQL Server project templates for VS2015 (CSSqlAggregate.cs)

   1:  using System;
   2:  using System.Data;
   3:  using System.Data.SqlClient;
   4:  using System.Data.SqlTypes;
   5:  using Microsoft.SqlServer.Server;
   6:   
   7:  [Serializable]
   8:  [Microsoft.SqlServer.Server.SqlUserDefinedAggregate(Format.Native)]
   9:  public struct $safeitemname$
  10:  {
  11:      public void Init()
  12:      {
  13:          // $PutYourCodeHereComment$
  14:      }
  15:   
  16:      public void Accumulate(SqlString Value)
  17:      {
  18:          // $PutYourCodeHereComment$
  19:      }
  20:   
  21:      public void Merge ($safeitemname$ Group)
  22:      {
  23:          // $PutYourCodeHereComment$
  24:      }
  25:   
  26:      public SqlString Terminate ()
  27:      {
  28:          // $PutYourCodeHereComment$
  29:          return new SqlString (string.Empty);
  30:      }
  31:   
  32:      // $PlaceholderFieldComment$
  33:      public int _var1;
  34:  }


Comments ( )
Link to this page: //www.vb-net.com/VS2015-SQL-Server-Project-Templates/CSSqlAggregate-cs.htm
< THANKS ME>