Skip to content

Commit

Permalink
NetCommon Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ljlclark committed Dec 22, 2023
1 parent 751f68e commit 6862ad0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 35 deletions.
18 changes: 0 additions & 18 deletions CoreAssemblies/LJCNetCommon/LJCNetCommon/DbColumns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -783,24 +783,6 @@ public void LJCSetValue(string propertyName, object value)
}
}
}

//// Sets the value for the column with the specified name.
///// <include path='items/LJCSetValue/*' file='Doc/DbColumns.xml'/>
//public void LJCSetValue(string propertyName, object value)
//{
// if (value != null)
// {
// var dbColumn = LJCSearchPropertyName(propertyName);
// if (null == dbColumn)
// {
// Add(propertyName, value);
// }
// else
// {
// dbColumn.Value = value;
// }
// }
//}
#endregion

#region Properties
Expand Down
22 changes: 18 additions & 4 deletions CoreAssemblies/LJCNetCommon/LJCNetCommon/Doc/NetCommon.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,25 @@
</example>
</CompareNull>
<HasColumns>
<summary>
Checks a DataColumns collection for items.
</summary>
<param name="dataColumns">The DataColumns collection.</param>
<returns>true if the collection has items; otherwise, false.</returns>
</HasColumns>
<HasColumns1>
<summary>
Checks a data table for columns definitions.
</summary>
<param name="dataTable">The data table object.</param>
<returns>True if the data table contains Columns.</returns>
</HasColumns>
<returns>true if the data table contains Columns; otherwise, false.</returns>
</HasColumns1>
<HasData>
<summary>
Checks a data table for rows. (E)
</summary>
<param name="dataTable">The data table object.</param>
<returns>True if the data table contains rows.</returns>
<returns>true if the data table contains rows; otherwise, false.</returns>
<remarks>
This allows a single if statement where the DataTable value may be null.
</remarks>
Expand All @@ -110,8 +117,15 @@
Checks an IList collection for items.
</summary>
<param name="list">The IList interface.</param>
<returns>True if the collection contains items.</returns>
<returns>true if the collection contains items; otherwise; false.</returns>
</HasItems>
<HasTables>
<summary>
Checks a DataSet for tables.
</summary>
<param name="dataSet">The DataSet object.</param>
<returns>true if the DataSet has tables; otherwise, false.</returns>
</HasTables>
<IsEqual>
<summary>
Checks if two values are equal.
Expand Down
18 changes: 5 additions & 13 deletions CoreAssemblies/LJCNetCommon/LJCNetCommon/NetCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,8 @@ public static int CompareNull(object x, object y)
return retValue;
}

// Checks a data table for columns definitions.
/// <summary>
///
/// </summary>
/// <param name="dataColumns"></param>
/// <returns></returns>
// Checks a DataColumns collection for items.
/// <include path='items/HasColumns/*' file='Doc/NetCommon.xml'/>
public static bool HasColumns(DataColumnCollection dataColumns)
{
bool retValue = true;
Expand All @@ -128,7 +124,7 @@ public static bool HasColumns(DataColumnCollection dataColumns)
}

// Checks a data table for columns definitions.
/// <include path='items/HasColumns/*' file='Doc/NetCommon.xml'/>
/// <include path='items/HasColumns1/*' file='Doc/NetCommon.xml'/>
public static bool HasColumns(DataTable dataTable)
{
bool retValue = true;
Expand Down Expand Up @@ -168,12 +164,8 @@ public static bool HasItems(IList list)
return retValue;
}

// Checks an IList collection for items.
/// <summary>
///
/// </summary>
/// <param name="dataSet"></param>
/// <returns></returns>
// Checks a DataSet for tables.
/// <include path='items/HasTables/*' file='Doc/NetCommon.xml'/>
public static bool HasTables(DataSet dataSet)
{
bool retValue = false;
Expand Down

0 comments on commit 6862ad0

Please sign in to comment.