I have a class divided in two partial files, like this:
public partial class PersonRepository : BaseRepository
{
public static readonly str
change
public static readonly string ColumnID = "ID";
to
public const string ColumnID = "ID";
Just for completeness, here are the three valid default values for an optional argument: ( from: MSDN: Named and Optional Arguments)
new ValType()
, where ValType
is a value type,
such as an enum
or a struct
; (note: only the parameterless constructor can be used)default(ValType)
, where ValType
is a value type.