コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: MethodModifier.cs プロジェクト: youye00/higlabo
 public MethodModifier(MethodAccessModifier accessModifier)
 {
     this.AccessModifier = accessModifier;
     this.Static         = false;
     this.Polymophism    = MethodPolymophism.None;
 }