private static void SetParameters(Business.DataObjectForum item, SqlParameterCollection parameters) { parameters.AddWithValue("@ThreadCreationUsers", item.ThreadCreationUsers); }
public static string GetInsertSQL(Business.DataObjectForum item, SqlParameterCollection parameters) { SetParameters(item, parameters); return("INSERT INTO hiobj_Forum ([OBJ_ID],[ThreadCreationUsers]) VALUES (@OBJ_ID,@ThreadCreationUsers)"); }
public static string GetUpdateSQL(Business.DataObjectForum item, SqlParameterCollection parameters) { SetParameters(item, parameters); return("UPDATE hiobj_Forum SET [ThreadCreationUsers] = @ThreadCreationUsers"); }
public static void FillObject(Business.DataObjectForum item, SqlDataReader sqlReader) { item.ThreadCreationUsers = (_4screen.CSB.Common.CommunityUsersType)Enum.Parse(typeof(_4screen.CSB.Common.CommunityUsersType), sqlReader["ThreadCreationUsers"].ToString()); }