• 大小: 2.06MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-11
  • 语言: 数据库
  • 标签: WCF  

资源简介

这个WCF服务已经完成,内带数据库,但是在数据层中,是本机的连接数据库的方式 ,所以添加数据库后运行程序,会出错,可以把LINQ TO SQL 删除,再次添加一次。细节改一下就可以了。代码没有问题!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Runtime.Serialization;
using Zdsoft.DAL;

namespace Zdsoft.Common
{
    [ServiceContract(Name = “StudentService“)]
   public  interface IStudentService
    {
        [OperationContract(Name = “FindSingle“)]
        IList FindStudentBySIDAndSName(Student stu);
        [OperationContract(Name = “FindAll“)]
        IList FindAllStudent();      
        [OperationContract(Name = “Add“)]
        void AddStudent(Student stu);
        [OperationContract(Name = “Update“)]
        void UpdateStudent(Student stu);
        [OperationContract(Name = “Delete“)]
        void DeleteStudent(Student stu);
    }
     [ServiceContract]
    public interface Idepartment
    {
        [OperationContract(Name = “FindDepartment“)]
        IList FindDepartment();  
    }
     [ServiceContract]
     public interface IClass
     {

         [OperationContract(Name = “FindClass“)]
         IList FindClassID();
     }
     [ServiceContract]
     public interface IMajor
     {

         [OperationContract(Name = “FindMajor“)]
         IList FindMajor();
     }
     [ServiceContract]
     public interface INationality
     {

         [OperationContract(Name = “FindNationality“)]
         IList FindNationality();
     }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    3145728  2010-10-23 16:53  WCF\StudentManagement.mdf

     文件    1048576  2010-10-23 16:53  WCF\StudentManagement_log.ldf

     文件       2548  2010-10-20 22:29  WCF\WCF.sln

    ..A..H.     58368  2010-10-23 16:51  WCF\WCF.suo

     文件       5120  2010-10-22 10:54  WCF\Zdsoft.Common\bin\Debug\Zdsoft.Common.dll

     文件       7680  2010-10-22 10:54  WCF\Zdsoft.Common\bin\Debug\Zdsoft.Common.pdb

     文件      27136  2010-10-22 10:54  WCF\Zdsoft.Common\bin\Debug\Zdsoft.DAL.dll

     文件      67072  2010-10-22 10:54  WCF\Zdsoft.Common\bin\Debug\Zdsoft.DAL.pdb

     文件       1449  2010-10-20 10:10  WCF\Zdsoft.Common\IStudentService.cs

     文件       5887  2010-10-22 14:09  WCF\Zdsoft.Common\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       5792  2010-10-22 10:54  WCF\Zdsoft.Common\obj\Debug\ResolveAssemblyReference.cache

     文件        462  2010-10-22 10:54  WCF\Zdsoft.Common\obj\Debug\Zdsoft.Common.csproj.FileListAbsolute.txt

     文件       5120  2010-10-22 10:54  WCF\Zdsoft.Common\obj\Debug\Zdsoft.Common.dll

     文件       7680  2010-10-22 10:54  WCF\Zdsoft.Common\obj\Debug\Zdsoft.Common.pdb

     文件       1358  2010-10-18 11:01  WCF\Zdsoft.Common\Properties\AssemblyInfo.cs

     文件       2648  2010-10-18 11:58  WCF\Zdsoft.Common\Zdsoft.Common.csproj

     文件        405  2010-10-19 21:17  WCF\Zdsoft.DAL\app.config

     文件      27136  2010-10-22 10:54  WCF\Zdsoft.DAL\bin\Debug\Zdsoft.DAL.dll

     文件        405  2010-10-19 21:17  WCF\Zdsoft.DAL\bin\Debug\Zdsoft.DAL.dll.config

     文件      67072  2010-10-22 10:54  WCF\Zdsoft.DAL\bin\Debug\Zdsoft.DAL.pdb

     文件       2449  2010-10-21 16:31  WCF\Zdsoft.DAL\LINQ.cs

     文件       4259  2010-10-22 09:15  WCF\Zdsoft.DAL\My.dbml

     文件       4442  2010-10-22 09:15  WCF\Zdsoft.DAL\My.dbml.layout

     文件      34589  2010-10-22 09:15  WCF\Zdsoft.DAL\My.designer.cs

     文件       6030  2010-10-22 14:09  WCF\Zdsoft.DAL\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件      23552  2010-10-19 20:00  WCF\Zdsoft.DAL\obj\Debug\TempPE\Mmy.designer.cs.dll

     文件      23040  2010-10-22 09:15  WCF\Zdsoft.DAL\obj\Debug\TempPE\My.designer.cs.dll

     文件        377  2010-10-22 10:54  WCF\Zdsoft.DAL\obj\Debug\Zdsoft.DAL.csproj.FileListAbsolute.txt

     文件      27136  2010-10-22 10:54  WCF\Zdsoft.DAL\obj\Debug\Zdsoft.DAL.dll

     文件      67072  2010-10-22 10:54  WCF\Zdsoft.DAL\obj\Debug\Zdsoft.DAL.pdb

............此处省略113个文件信息

评论

共有 条评论