Esempio n. 1
0
 /// <summary>
 /// Get all column names for a specific model
 /// </summary>
 /// <param name="modelName">Existing model name</param>
 /// <returns>list of property/column names for model</returns>
 public static List <string> ModelColumnNameList(string modelName)
 {
     using (var context = new NorthwindContext())
     {
         return(context.ColumnNames(modelName));
     }
 }