An alternative to UBB.threads
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
FLocal/Web.Core/DB/ITableSpec.cs

30 lines
531 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Web.Core.DB {
public interface ITableSpec {
string name {
get;
}
string idName {
get;
}
}
public static class ITableSpecExtensions {
public static ColumnSpec getIdSpec(this ITableSpec table) {
return new ColumnSpec(table, table.idName);
}
public static ColumnSpec getColumnSpec(this ITableSpec table, string column) {
return new ColumnSpec(table, column);
}
}
}