internal static string ToCypherString <TEntity, TAttr>(this TEntity entity, ICypherExtensionContext context, string paramKey = null, List <CypherProperty> useProperties = null)
            where TAttr : CypherExtensionAttribute
            where TEntity : class
        {
            var properties = useProperties ?? CypherTypeItemHelper.PropertiesForPurpose <TEntity, TAttr>(entity);

            return(entity.GetMatchCypher(context, properties, paramKey));
        }
Exemple #2
0
        private static List <CypherProperty> GetCreateProperties <T>(T entity, List <CypherProperty> onCreateOverride = null) where T : class
        {
            var properties = onCreateOverride ?? CypherTypeItemHelper.PropertiesForPurpose <T, CypherMergeOnCreateAttribute>(entity);

            return(properties);
        }
 internal static void AddConfigProperties(CypherTypeItem type, List <CypherProperty> properties)
 {
     CypherTypeItemHelper.AddPropertyUsage(type, properties);
 }