private void AddCustomizedEntitySchemas() { EntitySchemaManager.AddCustomizedEntitySchema("Order", new Dictionary <string, string> { { "Number", "ShortText" }, }); var invoiceSchema = EntitySchemaManager.AddCustomizedEntitySchema("Invoice", new Dictionary <string, string> { { "PrimaryAmount", "Float2" }, { "CurrencyRate", "Float2" }, { "PaymentCurrencyRate", "Float2" }, }); invoiceSchema.AddLookupColumn("Order", "Order"); var tsOrderExpenseSchema = EntitySchemaManager.AddCustomizedEntitySchema("TsOrderExpense", new Dictionary <string, string> { { "Amount", "Float2" }, { "ExpenseDate", "DateTime" }, { "PrimaryAmount", "Float2" }, }); tsOrderExpenseSchema.AddLookupColumn("Order", "Order"); tsOrderExpenseSchema.AddLookupColumn("Invoice", "Invoice"); var tsOrderExpenseProductSchema = EntitySchemaManager.AddCustomizedEntitySchema("TsOrderExpenseProduct", new Dictionary <string, string> { { "Amount", "Float2" }, { "CalculateExpense", "Boolean" } }); tsOrderExpenseProductSchema.AddLookupColumn("TsOrderExpense", "TsOrderExpense"); }
protected override IEnumerable <Type> GetRequiringInitializationSchemas() { EntitySchemaManager.AddCustomizedEntitySchema("CaseStatus", new Dictionary <string, string> { { "Name", "ShortText" }, { "IsFinal", "Boolean" }, { "IsResolved", "Boolean" }, { "IsPaused", "Boolean" } }); return(base.GetRequiringInitializationSchemas()); }
private void AddCustomizedEntitySchemas() { EntitySchemaManager.AddCustomizedEntitySchema("Contact", new Dictionary <string, string> { { "Name", "MediumText" }, }); EntitySchemaManager.AddCustomizedEntitySchema("Activity", new Dictionary <string, string> { { "Title", "MediumText" }, }); var activityParticipantSchema = EntitySchemaManager.AddCustomizedEntitySchema("ActivityParticipant", new Dictionary <string, string> { }); activityParticipantSchema.AddLookupColumn("Contact", "Participant"); activityParticipantSchema.AddLookupColumn("Activity", "Activity"); }