Exemplo n.º 1
0
 /// <summary>
 /// Call FHIRbase function and cast value
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="func"></param>
 /// <returns></returns>
 public static T Cast <T>(this FHIRbaseFunc func)
 {
     return((T)PostgresHelper.Func(func.Name, func.Parameters.ToArray()));
 }
Exemplo n.º 2
0
 public static FHIRbaseFunc WithInt(this FHIRbaseFunc func, int limit)
 {
     func.Parameters.Add(PostgresHelper.Int(limit));
     return(func);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Add jsonb parameter
 /// </summary>
 /// <param name="func"></param>
 /// <param name="jsonParameter"></param>
 /// <returns></returns>
 public static FHIRbaseFunc WithJsonb(this FHIRbaseFunc func, string jsonParameter)
 {
     func.Parameters.Add(PostgresHelper.Jsonb(jsonParameter));
     return(func);
 }
Exemplo n.º 4
0
 public static FHIRbaseFunc WithTextArray(this FHIRbaseFunc func, string[] resources)
 {
     func.Parameters.Add(PostgresHelper.TextArray(resources));
     return(func);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Add text parameter
 /// </summary>
 /// <param name="func"></param>
 /// <param name="textParameter"></param>
 /// <returns></returns>
 public static FHIRbaseFunc WithText(this FHIRbaseFunc func, string textParameter)
 {
     func.Parameters.Add(PostgresHelper.Text(textParameter));
     return(func);
 }