⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ref_icommondbaccess.htm

📁 LLBLGen 1.21 Sourcecode
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 7.0">
<TITLE>LLBLGen::ICommonDBAccess interface</TITLE>
<link rel="STYLESHEET" type="text/css" href="general.css">
</HEAD>
<BODY>
<br>
<h3>LLBLGen::ICommonDBAccess interface</h3>
<p>
	LLBLGen will generate in the base class [Class prefix]DBInteractionBase.[cs|vb] file an interface, ICommonDBAccess,
	which defines the common methods which are implemented (if possible) by all generated .NET classes, 
	independent of the table or view layout. The base class implements this interface by virtual / overrideable methods
	which throw an NotImplementedException exception when called. If a .NET class implements a method of the
	interface, it overrides the method of the base class. This interface is particular useful when you have
	a control which should be able to handle more than one data-access tier class, f.e. a control which calls
	the SelectAll method of the data-access tier object passed to it, and displays the results. You can, with
	this interface, now simply implement the one control and pass any data-access tier object generated by LLBLGen.
	See also <a href="codestructure_net.htm">Code structure of the .NET code</a> for descriptions of the methods stated
	below.
</p>
<h4>ICommonDBAccess</h4>
<p>
	<b>C#</b><br>
<code><pre>
public interface ICommonDBAccess
{
	bool		Insert();
	bool		Update();
	bool		Delete();
	DataTable		SelectOne();
	DataTable		SelectAll();
}
</pre></code>
<br>
	<b>VB.NET</b><br>
<code><pre>
Public Interface ICommonDBAccess
	Function	Insert() As Boolean
	Function	Update() As Boolean
	Function	Delete() As Boolean
	Function	SelectOne() As DataTable
	Function	SelectAll() As DataTable
End Interface
</pre></code>
</p>
<div align="right" class="SmallFontTOC">
	<hr size="1" width="60%" align="right">
	LLBLGen v1.2 documentation. &copy; 2002 <a href="http://www.sd.nl/" target="_blank">Solutions Design</a>
</div>
<br><br>
</BODY>
</HTML>

⌨️ 快捷键说明

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