日期:2014-05-20  浏览次数:20768 次

有个地方没看懂
namespace   Stella2.IDAL
{
public   interface   IArt
{
void   Update(Stella2.Model.Art   art);
Model.Art   GetArt(int   id);
}
}


GetArt(int   id);     是什么意思啊。


//     Art    
using   System;

namespace   Stella2.Model
{
///   <summary>
///帖子
///   </summary>
public   class   Art
{
private   Int32   m_Id; //帖子编号
private   Stella2.Model.User   m_UserAdded=new   User(); //添加用户
private   Int32   m_TopicId; //主题编号
private   String   m_Title; //标题
private   String   m_Smile; //发帖表情
private   String   m_Body; //内容
private   System.DateTime   m_DateAdded; //添加日期
private   Int32   m_ThemeId; //帖子板块编号

private   Model.ArtUpdateRecords   rs=new   ArtUpdateRecords();//帖子修改记录

private   Boolean   m_IsUpdate; //是否被修改

/// <summary>
///是否被修改
/// </summary>
public   Boolean   IsUpdate
{
get   {   return   m_IsUpdate;}
set   {   m_IsUpdate   =   value;}
}


///   <summary>
///   帖子修改记录
///   </summary>
public   Model.ArtUpdateRecords   UpdateRecords
{
get{return   rs;}
set{rs=value;}
}

/// <summary>
///帖子编号
/// </summary>
public   Int32   Id
{
get   {   return   m_Id;}
set   {   m_Id   =   value;}
}
/// <summary>
///添加用户
/// </summary>
public   Stella2.Model.User   UserAdded
{
get   {   return   m_UserAdded;}
set   {   m_UserAdded   =   value;}
}
/// <summary>
///主题编号
/// </summary>
public   Int32   TopicId
{
get   {   return   m_TopicId;}
set   {   m_TopicId   =   value;}
}
/// <summary>
///标题
/// </summary>
public   String   Title
{
get   {   return   m_Title;}
set   {   m_Title   =   value;}
}
/// <summary>
///发帖表情
/// </summary>
public   String   Smile
{
get   {   return   m_Smile;}
set   {   m_Smile   =   value;}
}
/// <summary>
///内容
/// </summary>
public   String   Body
{
get   {   return   m_Body;}
set   {   m_Body   =   value;}
}
/// <summary>
///添加日期
/// </summary>
public   System.DateTime   DateAdded
{
get   {   return   m_DateAdded;}
set   {   m_DateAdded   =   value;}
}
/// <summary>
///帖子板块编号
/// </summary>
public   Int32   ThemeId
{
get   {   return   m_ThemeId;}
set   {   m_ThemeId   =   value;}
}
}
}


------解决方案--------------------
没看到对应代码

应该是通过帖子编号获得贴子

*****************************************************************************