Note that there are some explanatory texts on larger screens.

plurals
  1. POStrongly Typed Data Context Must Declare a Body Error
    primarykey
    data
    text
    <p>Receiving this error: </p> <pre><code>Error 4 'ZoneUpdates.Models.PgeDataContext.PgeDataContext(string, System.Data.Linq.Mapping.MappingSource)' must declare a body because it is not marked abstract, extern, or partial C:\Code\ZoneUpdates\ZoneUpdates\Models\PgeDataContext.cs 18 16 ZoneUpdates Error 6 'ZoneUpdates.Models.ZoneObject.SendPropertyChanged(string)' must declare a body because it is not marked abstract, extern, or partial C:\Code\ZoneUpdates\ZoneUpdates\Models\PgeDataContext.cs 42 32 ZoneUpdates </code></pre> <p>Basically 13 errors between these four classes (two shown following).</p> <p>I'm using 4.0 and I've basically copy and pasted this code from another project where it works as expected. I've tried changing the classes to partial, to no avail. Any pointers is appreciated.</p> <pre><code>[Database(Name = "Pge_Dev")] public class PgeDataContext : DataContext { public PgeDataContext(IDbConnection connection); public PgeDataContext(string dsn); public PgeDataContext( IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource); public PgeDataContext( string connection, System.Data.Linq.Mapping.MappingSource mappingSource); public Table&lt;ZoneObject&gt; ZoneObject { get; set; } public Table&lt;ZoneObjType&gt; ZoneObjType { get; set; } public Table&lt;ZoneTypeBridge&gt; ZoneTypeBridge { get; set; } } [Table(Name = "dbo.ZoneObject")] public class ZoneObject : INotifyPropertyChanging, INotifyPropertyChanged { public ZoneObject(); [Column(Storage = "ID", DbType = "Int NOT NULL")] public int ID { get; set; } [Column(Storage = "Name", DbType = "nvarchar(30)")] public int Name { get; set; } [Column(Storage = "Value", DbType = "bigint")] public int Value { get; set; } [Column(Storage = "CancurrencyID", DbType = "Int NOT NULL")] public int ConcurrencyID { get; set; } public event PropertyChangedEventHandler PropertyChanged; public event PropertyChangingEventHandler PropertyChanging; protected virtual void SendPropertyChanged(string propertyName); protected virtual void SendPropertyChanging(); } </code></pre>
    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.
    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