Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.44 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Detecting a table's primary key
  2. protected void GenerateListByMethods( Table table)
  3. {
  4.     WriteLine("#region ListByn");
  5.  
  6.     WriteLine("ntpublic List<"+Prefix+table.Name+"> ListAll()nt{nt  " +
  7.         this.RepositoryNotification +
  8.         "nttt return Ctx.GetAll().ToList().ToCustomList<"+table.Name+","+Prefix+table.Name+">();nt}n");
  9.     foreach (Column  column in table.Columns)
  10.     {
  11.         switch(column.DataType.Name)
  12.         {  // do something