Beispiel #1
0
 public static void insert(HomeEntity home)
 {
     DbHelper.ExecuteNonQuery("p_Home_insert",
         home.Area,
         home.FileName,
         home.Text,
         home.Url,
         home.IsShow,
         home.Sort
     );
 }
Beispiel #2
0
 public static void update(HomeEntity home)
 {
     DbHelper.ExecuteNonQuery("p_Home_update",
         home.HomeId,
         home.Area,
         home.FileName,
         home.Text,
         home.Url,
         home.IsShow,
         home.Sort
     );
 }
Beispiel #3
0
 public static HomeEntity getById(int homeId)
 {
     DataRow dr = DbHelper.ExecuteDataRow("p_home_getById", homeId);
     HomeEntity home = new HomeEntity();
     if (dr != null)
     {
         home.HomeId = int.Parse(dr["HomeId"].ToString());
         home.Area = dr["Area"].ToString();
         home.FileName = dr["FileName"].ToString();
         home.Text = dr["Text"].ToString();
         home.Url = dr["Url"].ToString();
         home.IsShow = bool.Parse(dr["IsShow"].ToString());
         home.Sort = int.Parse(dr["Sort"].ToString());
     }
     return home;
 }
Beispiel #4
0
 public static void update(HomeEntity home)
 {
     Home.update(home);
 }
Beispiel #5
0
 public static void insert(HomeEntity home)
 {
     Home.insert(home);
 }