0

I've a quite huge database,which scripted with t4 generates around 30k lines of code. Since this application only uses 2 stored procedure, is there a way to tell at t4 generator to process just the specific stored procedure name I need to map?

I know I can manually delete the remaing but it would be easier to just create them

advapi
  • 3,661
  • 4
  • 38
  • 73

1 Answers1

1

After metadata load (Load*Metadata call) you should add code to go over all procedures and remove all except those you need

foreach (var p in Procedures.ToList())
        if (p.Value.ProcedureName != "put_your_name_here")
            Procedures.Remove(p.Key);