public IEnumerable <IConceptInfo> CreateNewConcepts(CodeTableInfo conceptInfo, IDslModel existingConcepts) { var codePropertyInfo = new ShortStringPropertyInfo { DataStructure = conceptInfo.Entity, Name = "Code" }; var autoCode = new AutoCodePropertyInfo { Property = codePropertyInfo }; var namePropertyInfo = new ShortStringPropertyInfo { DataStructure = conceptInfo.Entity, Name = "Name" }; var requiredInfo = new RequiredPropertyInfo { Property = namePropertyInfo }; return(new IConceptInfo[] { codePropertyInfo, autoCode, namePropertyInfo, requiredInfo }); }
public IEnumerable <IConceptInfo> CreateNewConcepts(SifarnikInfo conceptInfo, IDslModel existingConcepts) { var newConcepts = new List <IConceptInfo>(); var poljeOznaka = new ShortStringPropertyInfo { Name = "Oznaka", DataStructure = conceptInfo.Entity }; var poljeNaziv = new ShortStringPropertyInfo { Name = "Naziv", DataStructure = conceptInfo.Entity }; newConcepts.Add(poljeNaziv); newConcepts.Add(new AutoCodePropertyInfo { Property = poljeOznaka }); newConcepts.Add(poljeOznaka); return(newConcepts); }