我是初学三层架构的,遇到了一些问题,大家多多指点!
我创建了一个工程,有Model项目,DAL项目,BLL项目
Model项目我生存好了 Model.DLL与Model.pdb 文件,我把它放入 DAL项目下的 bin/Debug/目录中.
为什么我在DAL项目用引用 using Model; 无作用?? 要怎么做才可以引用?谢谢各位.附Model 代码以下:
using System;namespace Model
{
public class cMessage
{
private Int32 _id;
private string _title;
private string _content; public int id
{
set { _id = value; }
get { return _id; }
}
public string title
{
set { _title = value; }
get { return _title; }
}
public string content
{
set { _content = value; }
get { return _content; }
} }
}
我创建了一个工程,有Model项目,DAL项目,BLL项目
Model项目我生存好了 Model.DLL与Model.pdb 文件,我把它放入 DAL项目下的 bin/Debug/目录中.
为什么我在DAL项目用引用 using Model; 无作用?? 要怎么做才可以引用?谢谢各位.附Model 代码以下:
using System;namespace Model
{
public class cMessage
{
private Int32 _id;
private string _title;
private string _content; public int id
{
set { _id = value; }
get { return _id; }
}
public string title
{
set { _title = value; }
get { return _title; }
}
public string content
{
set { _content = value; }
get { return _content; }
} }
}
解决方案 »
- HTTP 请求XML文件,POST了参数,报405错误
- server2008+IIS7+net2.0域名访问问题
- 类总是找不到?应该如何解决?
- HttpFileCollection files = HttpContext.Current.Request.Files; 这语句的意思
- 求一个生成卡号的算法
- asp.net的DataGrid的问题
- 非常棘手的问题,gridview动态数据列宽设置,和首行固定问题
- mysql汉字存储设置问题
- fastreport 报表生成二维码 基于.net 求救
- 帮我呀!
- asp.net跨线程操作!麻烦各位高手及专家!谢谢!
- System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
在使用的页面添加Using Model.CMessage