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.
26 lines
403 B
26 lines
403 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace FLocal.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);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|