コード例 #1
0
 private int GetTableObjectId(IRdbDataEntity e)
 => GetDatabaseObjectId(AttributeStuff.GetCustomAttribute <TableAttribute>(e.GetType()));
コード例 #2
0
        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());
        }