public Method CreateSetResultSetMethod(StoredProcedureResultSetColumn resultSet, MethodPolymophism polymophism) { var sp = this.StoredProcedure; Method md = new Method(MethodAccessModifier.Protected, "SetResultSet"); md.Modifier.Polymophism = polymophism; md.AddParameter(String.Format("{0}.{1}", sp.Name, resultSet.Name), "resultSet"); md.AddParameter("IDataReader", "reader"); md.Body.AddRange(CreateSetResultSetMethodBody(resultSet)); return(md); }
public MethodModifier(MethodAccessModifier accessModifier) { this.AccessModifier = accessModifier; this.Static = false; this.Polymophism = MethodPolymophism.None; }