Ejemplo n.º 1
0
 private static void SetupAllSelect(IMapping <T> Mapping, IEnumerable <IMapping> ParentMappings)
 {
     Contract.Requires <ArgumentNullException>(Mapping != null, "Mapping");
     if (!string.IsNullOrEmpty(Mapping.SelectAllCommand))
     {
         return;
     }
     Mapping.SetSelectAllCommand(string.Format(CultureInfo.InvariantCulture,
                                               "SELECT {0} FROM {1}",
                                               GetColumns(Mapping),
                                               Mapping.TableName),
                                 CommandType.Text);
 }