First create class library Model (business entity layer), create class: NewDina.CS is used to get the corresponding field name of the database.
Demo as follows:
[Copy to Clipboard] [ - ] CODE:
public class NewDina
{
#region Fields
private string _news_Title = String.Empty;
private string _news_Content = String.Empty;
private string _news_Time;
#endregion
Public Properties#region Public Properties
public string news_Title
{
get { return _news_Title; }
set { _news_Title = value; }
}
public string news_Content
{
get { return _news_Content; }
set { _news_Content = value; }
}
public string news_Time
{
get { return _news_Time; }
set { _news_Time = value; }
}
#endregion
}
And then create a class InaSet.CS the column is used to put the search keyword in an array to replace the keyword, making the search keyword red;
Demo as follows:
[Copy to Clipboard] [ - ] CODE:
public class DinaSet
{
private ArrayList dinarray = new ArrayList();
public ArrayList Dinarray
{
get
{
return dinarray;
}
}
}