S
shapper
Hello,
I have am using SQL Server and Entity Framework to create my Entities.
On my SQL code I have:
create table Assets
(
ID uniqueidentifier not null rowguidcol
constraint PK_Asset primary key clustered,
Content nvarchar(max) not null
) -- Assets
And my Entity becomes:
public class Asset {
public Guid ID { get; set; }
public String Content { get; set; }
}
When should I use ID or Id?
To extend this discussion:
public Asset GetAssetByID(Guid id)
Or GetAssetById?
I also found the following:
http://msdn.microsoft.com/en-us/library/ms229043.aspx
I get the impression that it should be ID ... But then in Pascal it
should be Id ...
In .NET Microsoft uses GridView1.ClientID.
I am a little bit confused. What do you usually do?
NOTE: The code I write in this post is exactly as I am using at the
moment.
Thanks,
Miguel
I have am using SQL Server and Entity Framework to create my Entities.
On my SQL code I have:
create table Assets
(
ID uniqueidentifier not null rowguidcol
constraint PK_Asset primary key clustered,
Content nvarchar(max) not null
) -- Assets
And my Entity becomes:
public class Asset {
public Guid ID { get; set; }
public String Content { get; set; }
}
When should I use ID or Id?
To extend this discussion:
public Asset GetAssetByID(Guid id)
Or GetAssetById?
I also found the following:
http://msdn.microsoft.com/en-us/library/ms229043.aspx
I get the impression that it should be ID ... But then in Pascal it
should be Id ...
In .NET Microsoft uses GridView1.ClientID.
I am a little bit confused. What do you usually do?
NOTE: The code I write in this post is exactly as I am using at the
moment.
Thanks,
Miguel