Auto Generate ID by Template Config in the database (C# + SQL Server)