출처) http://funnygangstar.tistory.com/entry/iBatisNet-SQL-쿼리-코드-이쁘게-출력

iBatis.Net에서 쿼리를 로그로 출력하면 죽~ 한줄로만 나온다.

이때 가독성을 높이기 위해서 iBatis.Net의 코드에서 아래를 변경한다.

DataMapper 프로젝트의 DomSqlMapBuilder 클래스에서 ParseDynamicTags() 메소드…

//string data = child.InnerText.Replace('\n', ' ').Replace('\r', ' ').Replace('\t', ' ');  --> 주석처리!!

string data = child.InnerText.Replace('\t', ' ');
2008-10-24 11:39:24,281 - Statement Id: [select_categories] Prepared SQL:
  [select  CategoryID,
              CategoryName,
              Description
        from  Categories]

vcproj 파일을 열어보면 File 의 속성이 프로젝트에서 상속받지 못하고 각각의 File 마다 속성을 주게 된다. 허나 이것은 C4652 오루를 내가 될수 있다.

때문에

			
				
					
				
				
					
				
			
			
			

와 같이 없애서 기본 프로젝트에서 상속을 받게 만들면 warning을 없앨수 있다.

Debug에 구성속성 -> 일반 -> 대상이름을 $(ProjectName) 에서 $(ProjectName)D 로 변경

ProjectName.exp :
warning LNK4070: /OUT:ProjectName.dll directive in .EXP differs from output filename “ProjectNameD.dll”; ignoring directive

원인 :
상기 경고는 DLL ProjectSetting 에서 Output file name 을 바꾸면 나타나는 현상입니다.
( ProjectName.dll -> ProjectD.dll )
.def 파일의 내용중에 아래 와 같이 ProjectName.dll 로 되어있어서
.exp 파일과 결과물이 달라서 발생하는 현상입니다.

해결방법 :
ProjectName.def 파일을 하나 복사해서 아래와 같이 수정합니다.
———————————————————————————–
LIBRARY : ProjectName
———————————————————————————-
항목을
———————————————————————————-
LIBRARY : ProjectNameD
———————————————————————————-
이렇게 수정합니다.

그리고 Project Setting -> Link -> Category:General -> Project Options : /def:ProjectNameD.def
로 수정하시면 됩니다.

Page 1 of 2112345...1020...Last »