private int GetTableObjectId(IRdbDataEntity e) => GetDatabaseObjectId(AttributeStuff.GetCustomAttribute <TableAttribute>(e.GetType()));
public static IList <SystemCommunicationsModel> Create(IEnumerable <KeyValuePair <SystemCommunicationPurposes, int> > items) { var d = Stuff.GetEnumValues <SystemCommunicationPurposes>().ToDictionary(e => e, e => new SystemCommunicationsModel(e, 0, AttributeStuff.GetCustomAttribute <CommunicationModelAttribute>(e).Model)); foreach (var item in items) { d[item.Key].CreativeId = item.Value; } return(d.Values.OrderBy(item => item.Purpose).ToList()); }