예제 #1
0
        private CodeMemberField BuildSelectStatement(ServerInfo serverInfo, TableInfo tableInfo)
        {
            var cm = new CodeMemberField(typeof(System.String), "_selectSQL");

            cm.Attributes = (cm.Attributes & ~MemberAttributes.AccessMask & ~MemberAttributes.ScopeMask) | MemberAttributes.Private | MemberAttributes.Const;
            IDBCodeProvider dbProvider = DBCodeProviderFactory.GetDBCodeProvider(serverInfo);

            cm.InitExpression = new CodePrimitiveExpression(dbProvider.BuildSelectStatement(tableInfo));
            return(cm);
        }