trunk/src/LythumOSL.Core/Data/Database.cs
/// <summary>
/// Crafts save query with cleanup, depends on RowState
/// </summary>
/// <param name="info">Database metadata information</param>
/// <param name="r">DataRow with data</param>
/// <param name="fieldInfo">Fields which need to update</param>
/// <param name="tableName">DB table name</param>
/// <param name="primaryKeyName">Primary key's name</param>
/// <returns>sql query</returns>
Crafts save query with cleanup, depends on RowState
Crafts save query with cleanup depends on RowState
public static string CraftSaveQuery (
			DatabasesInfo info,
			DataRow r,
			DbFieldInfo[] fieldInfo,
			string tableName,
			string primaryKeyName)
		{
			return CraftSaveQuery (
				info, r, fieldInfo, tableName, primaryKeyName, true);
		}
public static string CraftSaveQuery ( DatabasesInfo info , DataRow r , DbFieldInfo [ ] fieldInfo , string tableName , string primaryKeyName ) { return CraftSaveQuery ( info , r , fieldInfo , tableName , primaryKeyName , true ) ; }
Crafts save query with cleanup, depends on RowState
Crafts save query with cleanup depends on RowState
None
info
DatabasesInfo
Database metadata information
Database metadata information
r
DataRow
DataRow with data
DataRow with data
fieldInfo
DbFieldInfo[]
Fields which need to update
Fields which need to update
tableName
string
DB table name
DB table name
primaryKeyName
string
Primary key's name
Primary key ' s name