private void InitializeObject(FMObjectSpace aObjectSpace) { attributes = new Dictionary <string, FMAbstractAttribute>(); Subscribers = new Dictionary <FMAttribute_derived, int>(); objectSpace = aObjectSpace; aObjectSpace.AllObjects.Add(this); }
public FMExpressionHandler(FMObjectSpace aObjectSpace) { objectSpace = aObjectSpace; Operations = new Dictionary<string, Delegate>(); // The keys have to be in lower case Operations.Add("->select", (ParamOperation)Select); Operations.Add("->first", (NamedOperation)First); Operations.Add("->sum", (NamedOperation)Sum); Operations.Add("->size", (NamedOperation)Size); Operations.Add("->sqrt", (NamedOperation)Sqrt); Operations.Add("->tostring", (NamedOperation)ToString); }
public FMExpressionHandler(FMObjectSpace aObjectSpace) { objectSpace = aObjectSpace; Operations = new Dictionary <string, Delegate>(); // The keys have to be in lower case Operations.Add("->select", (ParamOperation)Select); Operations.Add("->first", (NamedOperation)First); Operations.Add("->sum", (NamedOperation)Sum); Operations.Add("->size", (NamedOperation)Size); Operations.Add("->sqrt", (NamedOperation)Sqrt); Operations.Add("->tostring", (NamedOperation)ToString); }
public FMObject(FMObjectSpace aObjectSpace, string aObjectGUID) { objectGUID = aObjectGUID; InitializeObject(aObjectSpace); }
public FMObject(FMObjectSpace aObjectSpace) { objectGUID = Guid.NewGuid().ToString(); InitializeObject(aObjectSpace); }
private void InitializeObject(FMObjectSpace aObjectSpace) { attributes = new Dictionary<string, FMAbstractAttribute>(); Subscribers = new Dictionary<FMAttribute_derived, int>(); objectSpace = aObjectSpace; aObjectSpace.AllObjects.Add(this); }
public FMPersistenceHandler(FMObjectSpace aObjectSpace) { objectSpace = aObjectSpace; fDBConnection = new SqlConnection(@"Data Source=OPTIPLEX\SQLEXPRESS;Initial Catalog=FMSim;Integrated Security=True"); }
public FMSubscriptionHandler(FMObjectSpace aObjectSpace) { objectSpace = aObjectSpace; Subscribers = new Stack <FMSim.ORM.FMObject.FMAttribute_derived>(); }
public FMSubscriptionHandler(FMObjectSpace aObjectSpace) { objectSpace = aObjectSpace; Subscribers = new Stack<FMSim.ORM.FMObject.FMAttribute_derived>(); }