time 
设为首页】【收藏本站
当前位置: 主页 > 程序设计 > .net > .net入门 > dhl:类型“System.Data.Objects.DataClasses.EntityObject”在未被引用的程序集中定义必须添加对程序集“System.Data.Entity"引用

dhl:类型“System.Data.Objects.DataClasses.EntityObject”在未被引用的程序集中定义必须添加对程序集“System.Data.Entity"引用

时间:2010-03-02 23:47 点击:10201次 字体:[ ]




必须添加对程序集“System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”的引用。
请检查下bin目录下有没有System.Data.Entity.dll  Svn不上传bin目录.

所以添加上去dll引用就可以。

没有的话从:C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5 下copy出来.

如果还是不可以的话:在webconfig中添加:

        <add assembly="System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
就可以。

最后请检查你有没有装3.5的框架,所以你的GAC里缺少那些程序集。

服务器错误:


“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

编译错误 
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 

编译器错误消息: CS0012: 类型“System.Data.Objects.DataClasses.EntityObject”在未被引用的程序集中定义。必须添加对程序集“System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”的引用。

源错误:

 

行 6:      if (farm != null)
行 7:      {
行 8:          if(farm.Notice!=null)
行 9:          {
行 10:             if(farm.Notice.Detail!="")
 

源文件: f:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx    行: 8 



显示详细的编译器输出:


D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE> "C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mvc\1.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\20a7abad\60dc2398_a659c901\PingCo.CommonService.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\91693b97\e461a882_43eec901\AppleGrange.DAL.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\2f24a689\c60feb5a_43eec901\Utility.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\f938c9f0\d6d74bbd_6bbdc801\Memcached.ClientLibrary.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_pingco.master.639c3968.97rjf0e6.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_global.asax.yywuurgi.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\255a438b\a2ac3e5b_35eec901\webcode.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\507a57a0\241b91cd_7765c901\PingCo.Basic.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\fd4c850e\7e0ff782_43eec901\AppleGrange.BLL.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\a5bdc101\d2ff995a_43eec901\AppleGrangeModel.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Data.Linq\3.5.0.0__b77a5c561934e089\System.Data.Linq.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\28910473\96b94870_8b14c901\UserStateInterface.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Abstractions\3.5.0.0__31bf3856ad364e35\System.Web.Abstractions.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\cade0763\160ed37c_5a9dc901\PingCo.CacheStore.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\99140b5f\0a963e83_43eec901\AppleGrange.Controllers.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\45fac422\1a3853c5_a62dc901\FAF.DataAccess.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\0789afd2\e8ffe866_ebbfc801\ICSharpCode.SharpZipLib.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\492374c0\c01be406_2549c901\MPF.NewBasic.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\efc907fc\a4438d83_43eec901\AppleGrange.web.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Routing\3.5.0.0__31bf3856ad364e35\System.Web.Routing.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.4.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.15.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.9.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.6.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.11.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.3.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.2.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.10.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.12.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.8.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.5.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.14.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.16.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.7.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\App_Web_awqj3m6v.13.cs"


适用于 Microsoft(R) .NET Framework 3.5 版的 Microsoft(R) Visual C# 2008 编译器 3.5.30729.1
 版
版权所有(C) Microsoft Corporation。保留所有权利。

f:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx(8,9): error CS0012: 类型“System.Data.Objects.DataClasses.EntityObject”在未被引用的程序集中定义。必须添加对程序集“System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”的引用。
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b26dfb34\a018450\assembly\dl3\91693b97\e461a882_43eec901\AppleGrange.DAL.DLL: (与前一个错误相关的符号位置)

 



显示完整的编译源:


行 1:    #pragma checksum "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "A3842A1753F086F1CF26AC1FC79E272E"
行 2:    //------------------------------------------------------------------------------
行 3:    // 
<auto-generated>
行 4:    //     此代码由工具生成。
行 5:    //     运行时版本:2.0.50727.3053
行 6:    //
行 7:    //     对此文件的更改可能会导致不正确的行为,并且如果
行 8:    //     重新生成代码,这些更改将会丢失。
行 9:    // 
</auto-generated>
行 10:   //------------------------------------------------------------------------------
行 11:   
行 12:   namespace ASP {
行 13:       
行 14:       #line 257 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 15:       using System.Collections;
行 16:       
行 17:       #line default
行 18:       #line hidden
行 19:       
行 20:       #line 260 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 21:       using System.Text;
行 22:       
行 23:       #line default
行 24:       #line hidden
行 25:       
行 26:       #line 2 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 27:       using System.Web.UI;
行 28:       
行 29:       #line default
行 30:       #line hidden
行 31:       
行 32:       #line 128 "F:\AppleGrange\AppleGrange.web\web.config"
行 33:       using System.Collections.Generic;
行 34:       
行 35:       #line default
行 36:       #line hidden
行 37:       
行 38:       #line 127 "F:\AppleGrange\AppleGrange.web\web.config"
行 39:       using System.Linq;
行 40:       
行 41:       #line default
行 42:       #line hidden
行 43:       
行 44:       #line 123 "F:\AppleGrange\AppleGrange.web\web.config"
行 45:       using System.Web.Mvc;
行 46:       
行 47:       #line default
行 48:       #line hidden
行 49:       
行 50:       #line 264 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 51:       using System.Web.SessionState;
行 52:       
行 53:       #line default
行 54:       #line hidden
行 55:       
行 56:       #line 126 "F:\AppleGrange\AppleGrange.web\web.config"
行 57:       using System.Web.Routing;
行 58:       
行 59:       #line default
行 60:       #line hidden
行 61:       
行 62:       #line 258 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 63:       using System.Collections.Specialized;
行 64:       
行 65:       #line default
行 66:       #line hidden
行 67:       
行 68:       #line 261 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 69:       using System.Text.RegularExpressions;
行 70:       
行 71:       #line default
行 72:       #line hidden
行 73:       
行 74:       #line 262 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 75:       using System.Web;
行 76:       
行 77:       #line default
行 78:       #line hidden
行 79:       
行 80:       #line 2 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 81:       using System.Web.UI.WebControls;
行 82:       
行 83:       #line default
行 84:       #line hidden
行 85:       
行 86:       #line 263 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 87:       using System.Web.Caching;
行 88:       
行 89:       #line default
行 90:       #line hidden
行 91:       
行 92:       #line 266 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 93:       using System.Web.Profile;
行 94:       
行 95:       #line default
行 96:       #line hidden
行 97:       
行 98:       #line 125 "F:\AppleGrange\AppleGrange.web\web.config"
行 99:       using System.Web.Mvc.Html;
行 100:      
行 101:      #line default
行 102:      #line hidden
行 103:      
行 104:      #line 265 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 105:      using System.Web.Security;
行 106:      
行 107:      #line default
行 108:      #line hidden
行 109:      
行 110:      #line 256 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 111:      using System;
行 112:      
行 113:      #line default
行 114:      #line hidden
行 115:      
行 116:      #line 2 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 117:      using System.Web.UI.WebControls.WebParts;
行 118:      
行 119:      #line default
行 120:      #line hidden
行 121:      
行 122:      #line 259 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 123:      using System.Configuration;
行 124:      
行 125:      #line default
行 126:      #line hidden
行 127:      
行 128:      #line 1 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 129:      using ASP;
行 130:      
行 131:      #line default
行 132:      #line hidden
行 133:      
行 134:      #line 124 "F:\AppleGrange\AppleGrange.web\web.config"
行 135:      using System.Web.Mvc.Ajax;
行 136:      
行 137:      #line default
行 138:      #line hidden
行 139:      
行 140:      #line 270 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
行 141:      using System.Web.UI.HtmlControls;
行 142:      
行 143:      #line default
行 144:      #line hidden
行 145:      
行 146:      
行 147:      [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
行 148:      public class views_grange_myhome_aspx : global::System.Web.Mvc.ViewPage, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
行 149:          
行 150:          private static bool @__initialized;
行 151:          
行 152:          private static object @__fileDependencies;
行 153:          
行 154:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 155:          public views_grange_myhome_aspx() {
行 156:              string[] dependencies;
行 157:              ((global::System.Web.Mvc.ViewPage)(this)).AppRelativeVirtualPath = "~/Views/Grange/MyHome.aspx";
行 158:              if ((global::ASP.views_grange_myhome_aspx.@__initialized == false)) {
行 159:                  dependencies = new string[2];
行 160:                  dependencies[0] = "~/Views/Grange/MyHome.aspx";
行 161:                  dependencies[1] = "~/Views/Shared/PingCo.Master";
行 162:                  global::ASP.views_grange_myhome_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);
行 163:                  global::ASP.views_grange_myhome_aspx.@__initialized = true;
行 164:              }
行 165:              this.Server.ScriptTimeout = 30000000;
行 166:          }
行 167:          
行 168:          protected System.Web.Profile.DefaultProfile Profile {
行 169:              get {
行 170:                  return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));
行 171:              }
行 172:          }
行 173:          
行 174:          protected ASP.global_asax ApplicationInstance {
行 175:              get {
行 176:                  return ((ASP.global_asax)(this.Context.ApplicationInstance));
行 177:              }
行 178:          }
行 179:          
行 180:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 181:          private void @__BuildControlContent1(System.Web.UI.Control @__ctrl) {
行 182:              @__ctrl.SetRenderMethodDelegate(new System.Web.UI.RenderMethod(this.@__RenderContent1));
行 183:          }
行 184:          
行 185:          private void @__RenderContent1(System.Web.UI.HtmlTextWriter @__w, System.Web.UI.Control parameterContainer) {
行 186:              @__w.Write("\r\n");
行 187:              
行 188:              #line 3 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 189:    Html.RenderPartial("msg"); 
行 190:              
行 191:              #line default
行 192:              #line hidden
行 193:              
行 194:              #line 4 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 195:    
行 196:      AppleGrange.BLL.DTOFarm farm = ViewData.Model as AppleGrange.BLL.DTOFarm;
行 197:      if (farm != null)
行 198:      {
行 199:          if(farm.Notice!=null)
行 200:          {
行 201:              if(farm.Notice.Detail!="")
行 202:              {
行 203:      
行 204:              
行 205:              #line default
行 206:              #line hidden
行 207:              
行 208:              #line 13 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 209:  @__w.Write(MLGImg.NEWSFEED );
行 210:  
行 211:              
行 212:              #line default
行 213:              #line hidden
行 214:              
行 215:              #line 13 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 216:                   @__w.Write(Html.ActionLink(AppleGrange.BLL.UserInfoService.GetSingleUser(farm.Notice.PingcoID).UserName, "FriendFarm", "Grange", new { pid = farm.Notice.PingcoID, Ticks = DateTime.Now.Ticks }, new { }));
行 217:  
行 218:              
行 219:              #line default
行 220:              #line hidden
行 221:              @__w.Write(":
<font color=\"#ff0000\">");
行 222:              
行 223:              #line 13 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 224:                                                                                                                                                                                                                                             @__w.Write(farm.Notice.Detail );
行 225:  
行 226:              
行 227:              #line default
行 228:              #line hidden
行 229:              @__w.Write("
</font>\r\n    (");
行 230:              
行 231:              #line 14 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 232:  @__w.Write(webcode.PublicMethod.TimeOper.getDateDiffString(farm.Notice.CreateTime) );
行 233:  
行 234:              
行 235:              #line default
行 236:              #line hidden
行 237:              @__w.Write("前)");
行 238:              
行 239:              #line 14 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 240:                                                                              @__w.Write(Html.ActionLink("我也喊","NoticeAdd","Communion") );
行 241:  
行 242:              
行 243:              #line default
行 244:              #line hidden
行 245:              @__w.Write("!
<br />\r\n    ");
行 246:              
行 247:              #line 15 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 248:        }
行 249:      } 
行 250:              
行 251:              #line default
行 252:              #line hidden
行 253:              @__w.Write("\r\n
<ul style=\"click-expand\" title=\"我的庄园(");
行 254:              
行 255:              #line 17 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 256:                               @__w.Write(farm.userInfo.Grade);
行 257:  
行 258:              
行 259:              #line default
行 260:              #line hidden
行 261:              @__w.Write("级)\"
>\r\n<li><href=\"#\">");
行 262:              
行 263:              #line 18 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 264:          @__w.Write(farm.userInfo.UserName);
行 265:  
行 266:              
行 267:              #line default
行 268:              #line hidden
行 269:              @__w.Write("
</a></li>\r\n<li><href=\"#\">等级:");
行 270:              
行 271:              #line 19 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 272:             @__w.Write(farm.userInfo.Grade);
行 273:  
行 274:              
行 275:              #line default
行 276:              #line hidden
行 277:              @__w.Write("
</a></li>\r\n<li><href=\"#\">经验:");
行 278:              
行 279:              #line 20 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 280:             @__w.Write(farm.userInfo.Experience);
行 281:  
行 282:              
行 283:              #line default
行 284:              #line hidden
行 285:              @__w.Write("/");
行 286:              
行 287:              #line 20 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 288:                                           @__w.Write((farm.userInfo.Grade+1) * (farm.userInfo.Grade + 2) * 100 );
行 289:  
行 290:              
行 291:              #line default
行 292:              #line hidden
行 293:              @__w.Write("
</a></li>\r\n<li><href=\"#\">魅力:");
行 294:              
行 295:              #line 21 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 296:             @__w.Write(farm.userInfo.Charm);
行 297:  
行 298:              
行 299:              #line default
行 300:              #line hidden
行 301:              @__w.Write("
</a></li>\r\n<li><href=\"#\">现金:");
行 302:              
行 303:              #line 22 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 304:             @__w.Write(farm.userInfo.Money);
行 305:  
行 306:              
行 307:              #line default
行 308:              #line hidden
行 309:              @__w.Write("
</a></li>\r\n<li><href=\"#\">水晶:");
行 310:              
行 311:              #line 23 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 312:             @__w.Write(farm.userInfo.Quarz);
行 313:  
行 314:              
行 315:              #line default
行 316:              #line hidden
行 317:              @__w.Write("
</a></li>\r\n<li><href=\"#\">金苹果:");
行 318:              
行 319:              #line 24 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 320:              @__w.Write(Utility.PinCoHelper.GetPingCoGoldAppleNum(farm.userInfo.PingcoID));
行 321:  
行 322:              
行 323:              #line default
行 324:              #line hidden
行 325:              @__w.Write("
</a></li>\r\n<li><href=\"#\">土地:");
行 326:              
行 327:              #line 25 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 328:             @__w.Write(farm.userInfo.LandNum);
行 329:  
行 330:              
行 331:              #line default
行 332:              #line hidden
行 333:              @__w.Write("
</a></li>\r\n</ul>\r\n");
行 334:              
行 335:              #line 27 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 336:    } 
行 337:              
行 338:              #line default
行 339:              #line hidden
行 340:              @__w.Write("\r\n\r\n
<br />\r\n ");
行 341:              
行 342:              #line 30 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 343:  @__w.Write(MLGImg.MY_PIE );
行 344:  
行 345:              
行 346:              #line default
行 347:              #line hidden
行 348:              
行 349:              #line 30 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 350:              @__w.Write(Html.ActionLink("我的仓库", "Granary", "Grange", new { Ticks = DateTime.Now.Ticks }, new object { }));
行 351:  
行 352:              
行 353:              #line default
行 354:              #line hidden
行 355:              @__w.Write("\r\n ");
行 356:              
行 357:              #line 31 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 358:  @__w.Write(MLGImg.MOOD );
行 359:  
行 360:              
行 361:              #line default
行 362:              #line hidden
行 363:              
行 364:              #line 31 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 365:            @__w.Write(Html.ActionLink("我购买的", "Warehouse", "Shop", new { Ticks = DateTime.Now.Ticks }, new object { }));
行 366:  
行 367:              
行 368:              #line default
行 369:              #line hidden
行 370:              @__w.Write("\r\n
<hr />\r\n\r\n");
行 371:              
行 372:              #line 36 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 373:     foreach (var item in farm.UserFarmModelList)
行 374:      {
行 375:      
行 376:              
行 377:              #line default
行 378:              #line hidden
行 379:              @__w.Write(" \r\n    
<p>\r\n    <img src=\"base64://");
行 380:              
行 381:              #line 40 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 382:                 @__w.Write(webcode.PublicMethod.Base64.EncodingImgBase64(Html.dhlApplicationPathUrl()+Url.Content("/content/images/build/"+farm.GetFarmGrowPicture(item))));
行 383:  
行 384:              
行 385:              #line default
行 386:              #line hidden
行 387:              @__w.Write("\" 
/>\r\n    ");
行 388:              
行 389:              #line 41 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 390:        if (Request.Url.Host == "localhost")
行 391:        { 
行 392:              
行 393:              #line default
行 394:              #line hidden
行 395:              @__w.Write("\r\n    
<img src=\"");
行 396:              
行 397:              #line 43 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 398:        @__w.Write(Html.dhlApplicationPathUrl()+Url.Content("/content/images/build/"+farm.GetFarmGrowPicture(item)));
行 399:  
行 400:              
行 401:              #line default
行 402:              #line hidden
行 403:              @__w.Write("\" 
/>");
行 404:              
行 405:              #line 43 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 406:                                                                                                                 @__w.Write(item.FarmGrowStep );
行 407:  
行 408:              
行 409:              #line default
行 410:              #line hidden
行 411:              @__w.Write("\r\n    ");
行 412:              
行 413:              #line 44 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 414:        } 
行 415:              
行 416:              #line default
行 417:              #line hidden
行 418:              
行 419:              #line 45 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 420:  @__w.Write(item.CropsName );
行 421:  
行 422:              
行 423:              #line default
行 424:              #line hidden
行 425:              
行 426:              #line 45 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 427:                  @__w.Write(item.FarmGrowStepValue );
行 428:  
行 429:              
行 430:              #line default
行 431:              #line hidden
行 432:              @__w.Write("
<br />\r\n    ");
行 433:              
行 434:              #line 46 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 435:         if (item.CropsID == 0)
行 436:         {
行 437:             Response.Write("[" + Html.ActionLink("播种", "Planting", new { farmid = item.ID, Ticks = DateTime.Now.Ticks }) + "]");
行 438:         }
行 439:         else if (item.FarmGrowStep != AppleGrangeModel.EnumFarmGrowStep.Mature && item.FarmGrowStep != AppleGrangeModel.EnumFarmGrowStep.Harvest)
行 440:         {
行 441:             switch (item.LandState)
行 442:             {
行 443:                 case AppleGrangeModel.EnumLandState.Dry:
行 444:                     Response.Write("[" + Html.ActionLink("浇水", "Watering", new { farmid = item.ID, Ticks = DateTime.Now.Ticks }) + "]");
行 445:                     Response.Write("[" + Html.ActionLink("施肥", "Fertilize", new { farmid = item.ID, Ticks = DateTime.Now.Ticks }) + "]");
行 446:                     break;
行 447:                 case AppleGrangeModel.EnumLandState.Fertility:
行 448:                     Response.Write("
<font color=\"FF0000\">(健康成长中)</font>");
行 449:                     break;
行 450:                 case AppleGrangeModel.EnumLandState.Normal:
行 451:                     Response.Write("[" + Html.ActionLink("施肥", "Fertilize", new { farmid = item.ID, Ticks = DateTime.Now.Ticks }) + "]");
行 452:                     break;
行 453:                 default:
行 454:                     break;
行 455:             }
行 456:         } 
行 457:              
行 458:              #line default
行 459:              #line hidden
行 460:              
行 461:              #line 68 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 462:           
行 463:             if (item.FarmState == AppleGrangeModel.EnumFarmState.Harvest)
行 464:             {
行 465:                 Response.Write("[" + Html.ActionLink("锄地", "Hoeing", new { farmid = item.ID, Ticks = DateTime.Now.Ticks }) + "]");
行 466:             }
行 467:             else
行 468:             {
行 469:                 switch (item.FarmGrowStep)
行 470:                 {
行 471:                     case AppleGrangeModel.EnumFarmGrowStep.Abloom:
行 472:                     case AppleGrangeModel.EnumFarmGrowStep.BigLeaf:
行 473:                     case AppleGrangeModel.EnumFarmGrowStep.SmallLeaf:
行 474:                     case AppleGrangeModel.EnumFarmGrowStep.Germinate:                       
行 475:                         if (item.HaveWorm == AppleGrangeModel.EnumCropIsWorm.HaveWorm)
行 476:                         {
行 477:                             Response.Write("[" + Html.ActionLink("除虫", "KillWorm", new { farmid = item.ID, Ticks = DateTime.Now.Ticks }) + "]");
行 478:                         }
行 479:                         if (item.HaveGrass == AppleGrangeModel.EnumCropIsGrass.HaveGrass)
行 480:                         {
行 481:                             Response.Write("[" + Html.ActionLink("除草", "KillWeed", new { farmid = item.ID, Ticks = DateTime.Now.Ticks }) + "]");
行 482:                         }
行 483:                         break;
行 484:                     case AppleGrangeModel.EnumFarmGrowStep.Mature:
行 485:                         Response.Write("[" + Html.ActionLink("收获", "Gain", new { farmid = item.ID, Ticks = DateTime.Now.Ticks }) + "]");
行 486:                         break;
行 487:                     case AppleGrangeModel.EnumFarmGrowStep.Seed:
行 488:                         break;
行 489:                     case AppleGrangeModel.EnumFarmGrowStep.Space:
行 490:                         break;
行 491:                     default:
行 492:                         break;
行 493:                 }
行 494:             }
行 495:          
行 496:              
行 497:              #line default
行 498:              #line hidden
行 499:              @__w.Write("\r\n    
</p><hr />\r\n    ");
行 500:              
行 501:              #line 103 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 502:        
行 503:      }
行 504:      
行 505:              
行 506:              #line default
行 507:              #line hidden
行 508:              
行 509:              #line 106 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 510:        if (farm.userInfo.LandNum > 6)
行 511:        { 
行 512:              
行 513:              #line default
行 514:              #line hidden
行 515:              
行 516:              #line 108 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 517:  @__w.Write(MLGImg.NEWSFEED);
行 518:  
行 519:              
行 520:              #line default
行 521:              #line hidden
行 522:              
行 523:              #line 108 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 524:                  @__w.Write(Html.ActionLink("更多土地", "MyFarmList"));
行 525:  
行 526:              
行 527:              #line default
行 528:              #line hidden
行 529:              @__w.Write(">>
<br />\r\n    ");
行 530:              
行 531:              #line 109 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 532:        } 
行 533:              
行 534:              #line default
行 535:              #line hidden
行 536:              
行 537:              #line 110 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 538:  @__w.Write(MLGImg.SEARCH );
行 539:  
行 540:              
行 541:              #line default
行 542:              #line hidden
行 543:              
行 544:              #line 110 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 545:                 @__w.Write(Html.ActionLink("搜索","SearchList") );
行 546:  
行 547:              
行 548:              #line default
行 549:              #line hidden
行 550:              @__w.Write("|");
行 551:              
行 552:              #line 110 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 553:                                                          @__w.Write(Html.ActionLink("扩地", "EnlargeFarm", "Grange", new { Ticks = DateTime.Now.Ticks },null));
行 554:  
行 555:              
行 556:              #line default
行 557:              #line hidden
行 558:              @__w.Write("|");
行 559:              
行 560:              #line 110 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 561:                                                                                                                                                       @__w.Write(Html.ActionLink("我最近去过的庄园", "VistedList", "Communion"));
行 562:  
行 563:              
行 564:              #line default
行 565:              #line hidden
行 566:              @__w.Write("\r\n
<hr />\r\n摄像头 | ");
行 567:              
行 568:              #line 112 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 569:  @__w.Write(Html.ActionLink("留言本", "Guestbook", "Communion"));
行 570:  
行 571:              
行 572:              #line default
行 573:              #line hidden
行 574:              @__w.Write(" 
<br />\r\n");
行 575:              
行 576:              #line 113 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 577:     List
<AppleGrangeModel.UserActionLogModel> action = farm.GetActionLog() as List<AppleGrangeModel.UserActionLogModel>;
行 578:      
行 579:     foreach (var item in action)
行 580:     {
行 581:         Response.Write(Html.ActionLink(farm.GetUserTrueName(item.pingcoid), "FriendFarm", new { pid = item.pingcoid, Ticks = DateTime.Now.Ticks }));
行 582:         Response.Write(AppleGrange.BLL.UserActionService.GetActionDescription(item));
行 583:         Response.Write("
<br />");       
行 584:     }
行 585:       
行 586:              
行 587:              #line default
行 588:              #line hidden
行 589:              @__w.Write("\r\n     
<hr />\r\n");
行 590:          }
行 591:          
行 592:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 593:          private void @__BuildControlTree(views_grange_myhome_aspx @__ctrl) {
行 594:              
行 595:              #line 1 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 596:              @__ctrl.Title = "";
行 597:              
行 598:              #line default
行 599:              #line hidden
行 600:              
行 601:              #line 1 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 602:              @__ctrl.MasterPageFile = "~/Views/Shared/PingCo.Master";
行 603:              
行 604:              #line default
行 605:              #line hidden
行 606:              
行 607:              #line 1 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 608:              this.InitializeCulture();
行 609:              
行 610:              #line default
行 611:              #line hidden
行 612:              
行 613:              #line 2 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 614:              this.AddContentTemplate("ContentPlaceHolder1", new System.Web.UI.CompiledTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.@__BuildControlContent1)));
行 615:              
行 616:              #line default
行 617:              #line hidden
行 618:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
行 619:              
行 620:              #line 1 "F:\AppleGrange\AppleGrange.web\Views\Grange\MyHome.aspx"
行 621:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n"));
行 622:              
行 623:              #line default
行 624:              #line hidden
行 625:          }
行 626:          
行 627:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 628:          protected override void FrameworkInitialize() {
行 629:              base.FrameworkInitialize();
行 630:              this.@__BuildControlTree(this);
行 631:              this.AddWrappedFileDependencies(global::ASP.views_grange_myhome_aspx.@__fileDependencies);
行 632:          }
行 633:          
行 634:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 635:          public override int GetTypeHashCode() {
行 636:              return 1084756393;
行 637:          }
行 638:          
行 639:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
行 640:          public override void ProcessRequest(System.Web.HttpContext context) {
行 641:              base.ProcessRequest(context);
行 642:          }
行 643:      }
行 644:  }
行 645:  
 




--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.3053; ASP.NET 版本:2.0.50727.3053 


本文地址 : http://www.fengfly.com/plus/view-170883-1.html
标签: .NET System.Data.Objects System.Data.Entity
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码: