function functionname1(arg1, arg2){content}
Run Code Online (Sandbox Code Playgroud)
public string functionname(arg)
{
if (condition)
{
functionname1(arg1,arg2); // How do I call the JavaScript function from C#?
}
}
Run Code Online (Sandbox Code Playgroud)
请参考上面的代码,并建议我从C#调用JavaScript函数.
我在.cs文件中有下面的代码,我遇到下面的错误,任何帮助将不胜感激.
using System.Data.Entity;
namespace Assignment2.Models
{
public class TicketBookingEntities : DbContext
{
public DbSet<Performance> Performances { get; set; }
public DbSet<Production> Productions { get; set; }
}
}
Run Code Online (Sandbox Code Playgroud)
错误:
Error 1 The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
Error 2 The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?)
Error 3 The type or namespace name 'DbSet' …Run Code Online (Sandbox Code Playgroud) 我刚刚在c#/ XML中创建了一个新的windows 8应用程序,并下载了 mongodb c#驱动程序并在我的项目中添加了它的引用并遵循了教程的其余部分,但是当我尝试运行我的应用程序时
Cannot resolve Assembly or Windows Metadata file 'System.Data.dll'
Type universe cannot resolve assembly: System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
Run Code Online (Sandbox Code Playgroud)
请提前帮助我.