Пример #1
0
        public virtual TemplateParameter GetParameters()
        {
            var parameters = new TemplateParameter();

            parameters.Add(SqlConstants.StpPropertyNames,
                           GetNonChildCollectionProperties.OrderByDescending(x => x.Property.DataType.Datatype != Datatype.ReadonlyChild)
                           .ThenByDescending(x => x.Property.DataType.Datatype != Datatype.Child)
                           .ThenBy(x => x.Property.Name)
                           .Select(x => $"{x.SelectSqlParameterNaam},"));
            parameters.Add(SqlConstants.DeclareChilds, DeclareChilds);
            parameters.Add(SqlConstants.TableName, Name);
            parameters.Add(SqlConstants.Childs_GetById, GetChild_ByIdStp);
            parameters.Add(SqlConstants.ChildCollection_GetByParentIdStp, GetChildCollectionGetByParentId);

            return(parameters);
        }
Пример #2
0
 public virtual List <string> GetTableProperties()
 {
     return(GetNonChildCollectionProperties.Select(prop => $",{prop.SelectSqlTableProperty}").ToList());
 }