executesqlexception.cs

来自「全功能c#编译器」· CS 代码 · 共 39 行

CS
39
字号
using System;

using ICSharpCode.Core.Services;
using ICSharpCode.SharpDevelop.Services;

using SharpQuery.SchemaClass;

namespace SharpQuery.Exceptions
{
	public class ExecuteSQLException : Exception
	{		
		
		public ExecuteSQLException( ) : base( ((StringParserService)ServiceManager.Services.GetService(typeof(StringParserService))).Parse("${res:SharpQuery.Error.SQLExecution}") )
		{			
		}
		
		public ExecuteSQLException( ISchemaClass schema ) : base( ((StringParserService)ServiceManager.Services.GetService(typeof(StringParserService))).Parse("${res:SharpQuery.Error.SQLExecution}") 
		                                                               + "\n\r"
		                                                               + "-----------------"
		                                                               + "\n\r"
		                                                               + "(" + schema.Connection.ConnectionString + ")"
		                                                               + "\n\r"
		                                                               + "(" + schema.Connection.Name + ")"
		                                                               )
		{
		}		
		
		public ExecuteSQLException( string message ) : base( ((StringParserService)ServiceManager.Services.GetService(typeof(StringParserService))).Parse("${res:SharpQuery.Error.SQLExecution}") 
		                                                               + "\n\r"
		                                                               + "-----------------"
		                                                               + "\n\r"
		                                                               + message )	
       {		                                                               	
       }
		                                                               
	}
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?