- Detecting a table's primary key
- protected void GenerateListByMethods( Table table)
- {
- WriteLine("#region ListByn");
- WriteLine("ntpublic List<"+Prefix+table.Name+"> ListAll()nt{nt " +
- this.RepositoryNotification +
- "nttt return Ctx.GetAll().ToList().ToCustomList<"+table.Name+","+Prefix+table.Name+">();nt}n");
- foreach (Column column in table.Columns)
- {
- switch(column.DataType.Name)
- { // do something