예제 #1
0
		//public SC_GroupPermition Serialize() {
		//	return new SC_GroupPermition(Record);
		//}
		#endregion
		#region public SC_GroupPermition Serialize();
		public SC_GroupPermition Serialize() {
			SO_GroupPermition[] _serialisableobject;

			lock (record__) {
				int _current = Current;

				_serialisableobject = new SO_GroupPermition[Count];

				Reset();
				while (Read()) {
					_serialisableobject[Current] 
						= new SO_GroupPermition(
							parent_ref_.fields_.IDGroup,
							parent_ref_.fields_.IDPermition
						);
				}

				Current = _current;
			}

			SC_GroupPermition _serialize_out = new SC_GroupPermition();
			_serialize_out.SO_GroupPermition = _serialisableobject;
			return _serialize_out;
		}
예제 #2
0
		public void Deserialize(SO_GroupPermition GroupPermition_in) {
			mainAggregate.Fields = GroupPermition_in;
		}
예제 #3
0
		void clrObject() {
			fields_ = new SO_GroupPermition();
		}
예제 #4
0
		public void Open(SO_GroupPermition[] serialisableobject_in) {
			DataTable _datatable = new DataTable();
			_datatable.Columns.Add(new DataColumn("codProfissao", typeof(int)));
			_datatable.Columns.Add(new DataColumn("descProfissao", typeof(string)));

			DataRow _datarow;
			for (int i = 0; i < serialisableobject_in.Length; i++) {
				_datarow = _datatable.NewRow();
				_datarow["IDGroup"] = serialisableobject_in[i].IDGroup;
				_datarow["IDPermition"] = serialisableobject_in[i].IDPermition;

				_datatable.Rows.Add(_datarow);
			}

			Open(_datatable);
		}