Note that there are some explanatory texts on larger screens.

plurals
  1. POdataclassesdatacontext' does not contain a constructor that takes 0 arguments?
    primarykey
    data
    text
    <p>This is my DBML Designer Code</p> <pre><code> using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.Linq; using System.Data.Linq.Mapping; using System.Linq; using System.Linq.Expressions; using System.Reflection; public partial class DataClassesDataContext : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); #region Extensibility Method Definitions partial void OnCreated(); #endregion public DataClassesDataContext(string connection) : base(connection, mappingSource) { OnCreated(); } public DataClassesDataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } public DataClassesDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } public DataClassesDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } } </code></pre> <p>this is my C# code</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.Linq; public partial class Login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void cmdLogin_Click(object sender, EventArgs e) { DataClassesDataContext db = new DataClassesDataContext(); } } </code></pre> <p>when i write the DataClassesDataContex db=new DataClassesDataContex(); it will show DataClassesDataContex does not contain a constructor that takes 0 arguments?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload