protected override Student CreateEntity(string[] fields)
        {
            var student = new Student
            {
                Id             = int.Parse(fields[0]),
                LastName       = fields[1],
                FathersInitial = fields[2],
                FirstName      = fields[3],
                Cnp            = fields[4],
                StudentId      = fields[5]
            };

            student.SubjectsList = StudentSubjectJoiner.Join(student.Id);

            return(student);
        }
Beispiel #2
0
        private Expression ExcuteExpression(Expression expression)
        {
            IQueryable <T1> outer;
            IQueryable <T2> inner;

            _queryOptimizer.TryOptimize(_outer, _inner, out outer, out inner);

            var joinedSequence = _joiner.Join(outer.GetEnumerator(), inner.GetEnumerator());

            var result = Expression.Constant(joinedSequence);

            return(new Replacer().Convert(
                       node => node.NodeType == ExpressionType.Constant && ((ConstantExpression)node).Value is ISecretMarker
                        ? result
                        : node,
                       expression));
        }
Beispiel #3
0
 /**
  * Allows joining additional components to this builder using the given
  * {@link Joiner}.
  *
  * Simply executes the provided joiner on this instance to facilitate a
  * chain pattern.
  *
  * @param joiner joiner used for operation
  * @param retention the formatting to retain
  * @return this ComponentBuilder for chaining
  */
 public ComponentBuilder Join(IJoiner joiner, FormatRetention retention)
 {
     return(joiner.Join(this, retention));
 }
Beispiel #4
0
 /**
  * Allows joining additional components to this builder using the given
  * {@link Joiner} and {@link FormatRetention#ALL}.
  *
  * Simply executes the provided joiner on this instance to facilitate a
  * chain pattern.
  *
  * @param joiner joiner used for operation
  * @return this ComponentBuilder for chaining
  */
 public ComponentBuilder Join(IJoiner joiner)
 {
     return(joiner.Join(this, FormatRetention.All));
 }
Beispiel #5
0
 public void Join(IEnumerable <INode> initialWorld)
 {
     joiner.Join(initialWorld);
 }