Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
private static void SetupAnySelect(IMapping <T> Mapping, IEnumerable <IMapping> ParentMappings) { Contract.Requires <ArgumentNullException>(Mapping != null, "Mapping"); if (!string.IsNullOrEmpty(Mapping.SelectAnyCommand)) { return; } Mapping.SetSelectAnyCommand(string.Format(CultureInfo.InvariantCulture, "SELECT TOP 1 {0} FROM {1}", GetColumns(Mapping), Mapping.TableName), CommandType.Text); }