본문 바로가기

Web_Application

(94)
[c#] DLL 'SqlServerSpatial140.dll'을(를) 로드할 수 없습니다. 지정된 모듈을 찾을 수 없습니다. (예외가 발생한 HRESULT: 0x8007007E) An exception of type 'System.DllNotFoundException' occurred in Microsoft.SqlServer.Types.dll but was not handled in user code Additional information: DLL 'SqlServerSpatial140.dll'을(를) 로드할 수 없습니다. 지정된 모듈을 찾을 수 없습니다. (예외가 발생한 HRESULT: 0x8007007E) 참조https://goo.gl/WEKl7c https://goo.gl/7OewbA https://goo.gl/oYEqLt
[c#][mssql] Spatial Data type을 취급하기 위한 필수 패키지 C# 코딩에서 mssql Spatial Type을 취급하기 위한 필수 nuget 패키지 DotSpatial.Projections- 좌표계 변환 함수 포함 GeoJSON for Entity Framework 6 Spatial Data and WKT- Spatial m WKT 타입을 GeoJSON 으로 변경하는 함수 Microsoft.SqlServer.Types- Sql 서버의 타입 정의
Convert string format to Datetime string testDateString = "19900712"; DateTime testDatetime = DateTime.ParseExact(testDateString, "yyyyMMdd"); string resultDateString = string.Format("{0:yyyy년MM월dd일}", testDatetime); msdn : https://goo.gl/kLdZ9k
[다음 API] 주소 검색 샘플 다음 API 반환 구조 클래스 #region " [ 다음 주소검색 ] " public class DaumAddressSearchResult { public Channel channel { get; set; } } public class Channel { public string totalCount { get; set; } public string link { get; set; } public string result { get; set; } public string generator { get; set; } public string pageCount { get; set; } public string lastBuildDate { get; set; } public Item[] item { get; set; ..
[c#] 해당 경로에 파일 복사하기 string fileName = "{{복사 할 파일명}}"; string sourceFilePath = "{{원본 경로}}"; string targetFilePath = "{{복사 할 경로}}"; boolean existsCheck = false; boolean fileExists = false; FileInfo file; sourceFilePath = sourceFilePath + @"/" + fileName; file = new FileInfo(sourceFilePath); fileExists = file.Exists; if(fileExists) { try { if (!Directory.Exists(targetFilePath)) Directory.CreateDirectory(targetFilePath..
[c#] 경과 시간을 표시할 때 String saveTempString = string.empty;DateTime tempDateTime = DateTime.Now; // 시작하는 위치 ... 처리 로직 TimeSpan diff = DateTime.Now - tempDateTime; saveTempString = string.Format("{0:hh\\:mm\\:ss}", diff); Console.WriteLine(saveTempString);
[c#] StreamWriter 로 텍스트 파일 생성/쓰기 StreamWriter 로 텍스트 파일 생성/쓰기 public static void SaveFile(string filePath, string saveData = null) { if (!File.Exists(filePath)) { using (StreamWriter sw = File.CreateText(filePath)) { sw.Write(saveData); sw.AutoFlush = true; } } else { using (StreamWriter sw = File.AppendText(filePath)) { sw.Write("\r\n" + saveData); sw.AutoFlush = true; } } } 참조 : StreamWriter MSDN
2017 web developer road map 웹개발자인데 뭘해야할지 잘 모르겠으면 따라해보세요~ 출처