{"action":"created","issue":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/341","repository_url":"https://api.github.com/repos/volkanceylan/Serenity","labels_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/341/comments","events_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/341/events","html_url":"https://github.com/volkanceylan/Serenity/issues/341","id":137305763,"number":341,"title":"InplaceAdd = true","user":{"login":"Olricz","id":16984654,"avatar_url":"https://avatars.githubusercontent.com/u/16984654?v=3","gravatar_id":"","url":"https://api.github.com/users/Olricz","html_url":"https://github.com/Olricz","followers_url":"https://api.github.com/users/Olricz/followers","following_url":"https://api.github.com/users/Olricz/following{/other_user}","gists_url":"https://api.github.com/users/Olricz/gists{/gist_id}","starred_url":"https://api.github.com/users/Olricz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Olricz/subscriptions","organizations_url":"https://api.github.com/users/Olricz/orgs","repos_url":"https://api.github.com/users/Olricz/repos","events_url":"https://api.github.com/users/Olricz/events{/privacy}","received_events_url":"https://api.github.com/users/Olricz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-29T16:45:23Z","updated_at":"2016-02-29T21:04:41Z","closed_at":null,"body":"Merhaba Volkan, \r\n\r\nSergen ile olusturduktan sonra \"InplaceAdd = true\" ekledim ama disable gorunuyor. \r\n\r\n```\r\n\r\nnamespace MultiTenancy.Crm.Entities\r\n{\r\n    using MultiTenancy.Administration.Entities;\r\n    using Newtonsoft.Json;\r\n    using Serenity;\r\n    using Serenity.ComponentModel;\r\n    using Serenity.Data;\r\n    using Serenity.Data.Mapping;\r\n    using System;\r\n    using System.ComponentModel;\r\n    using System.IO;\r\n\r\n    [ConnectionKey(\"Default\"), DisplayName(\"Bolgeler\"), InstanceName(\"Bolgeler\"), TwoLevelCached]\r\n    [ReadPermission(\"Bolge\")]\r\n    [ModifyPermission(\"Bolge\")]\r\n    [JsonConverter(typeof(JsonRowConverter))]\r\n    [LookupScript(\"MultiTenancy.Bolgeler\")]\r\n    public sealed class BolgeRow : LoggingRow, IIdRow, INameRow, IMultiTenantRow\r\n    {\r\n        [DisplayName(\"Bolge Id\"), Column(\"BolgeID\"), Identity]\r\n        public Int32? BolgeId\r\n        {\r\n            get { return Fields.BolgeId[this]; }\r\n            set { Fields.BolgeId[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Bolge Adi\"), Size(15), NotNull, QuickSearch]\r\n        public String BolgeAdi\r\n        {\r\n            get { return Fields.BolgeAdi[this]; }\r\n            set { Fields.BolgeAdi[this] = value; }\r\n        }\r\n\r\n\r\n        [DisplayName(\"Last Directory Update\"), Insertable(false), Updatable(false)]\r\n        public DateTime? LastDirectoryUpdate\r\n        {\r\n            get { return Fields.LastDirectoryUpdate[this]; }\r\n            set { Fields.LastDirectoryUpdate[this] = value; }\r\n        }\r\n\r\n        [Insertable(false), Updatable(false)]\r\n        public Int32? TenantId\r\n        {\r\n            get { return Fields.TenantId[this]; }\r\n            set { Fields.TenantId[this] = value; }\r\n        }\r\n\r\n        public Int32Field TenantIdField\r\n        {\r\n            get { return Fields.TenantId; }\r\n        }\r\n\r\n        IIdField IIdRow.IdField\r\n        {\r\n            get { return Fields.BolgeId; }\r\n        }\r\n\r\n        StringField INameRow.NameField\r\n        {\r\n            get { return Fields.BolgeAdi; }\r\n        }\r\n\r\n        public static readonly RowFields Fields = new RowFields().Init();\r\n\r\n        public BolgeRow()\r\n            : base(Fields)\r\n        {\r\n        }\r\n\r\n        public class RowFields : LoggingRowFields\r\n        {\r\n            public Int32Field BolgeId;\r\n            public StringField BolgeAdi;\r\n            public readonly DateTimeField LastDirectoryUpdate;\r\n            public readonly Int32Field TenantId;\r\n\r\n            public RowFields()\r\n                : base(\"[dbo].[Bolgeler]\")\r\n            {\r\n                LocalTextPrefix = \"Crm.Bolge\";\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nnamespace MultiTenancy.Crm.Entities\r\n{\r\n    using MultiTenancy.Administration.Entities;\r\n    using Newtonsoft.Json;\r\n    using Serenity;\r\n    using Serenity.ComponentModel;\r\n    using Serenity.Data;\r\n    using Serenity.Data.Mapping;\r\n    using System;\r\n    using System.ComponentModel;\r\n    using System.IO;\r\n\r\n    [ConnectionKey(\"Default\"), DisplayName(\"Musteriler\"), InstanceName(\"Musteriler\"), TwoLevelCached]\r\n    [ReadPermission(\"Musteri\")]\r\n    [ModifyPermission(\"Musteri\")]\r\n    [JsonConverter(typeof(JsonRowConverter))]\r\n    public sealed class MusteriRow : LoggingRow, IIdRow, INameRow,IMultiTenantRow\r\n    {\r\n        [DisplayName(\"Musteri Id\"), Column(\"MusteriID\"), Size(5), PrimaryKey, QuickSearch]\r\n        public String MusteriId\r\n        {\r\n            get { return Fields.MusteriId[this]; }\r\n            set { Fields.MusteriId[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Musteri Adi\"), Size(255), NotNull]\r\n        public String MusteriAdi\r\n        {\r\n            get { return Fields.MusteriAdi[this]; }\r\n            set { Fields.MusteriAdi[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Vergi No\"), Size(20)]\r\n        public String VergiNo\r\n        {\r\n            get { return Fields.VergiNo[this]; }\r\n            set { Fields.VergiNo[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Vergi Dairesi\"), Size(20)]\r\n        public String VergiDairesi\r\n        {\r\n            get { return Fields.VergiDairesi[this]; }\r\n            set { Fields.VergiDairesi[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Hesap Kodu\"), Size(30)]\r\n        public String HesapKodu\r\n        {\r\n            get { return Fields.HesapKodu[this]; }\r\n            set { Fields.HesapKodu[this] = value; }\r\n        }\r\n        //-----------------------------------------------------------------\r\n        [DisplayName(\"Bolge\"), Column(\"BolgeID\"), ForeignKey(\"[dbo].[Bolgeler]\", \"BolgeID\"), LeftJoin(\"jBolge\"), TextualField(\"BolgeAdi\")]\r\n        [LookupEditor(\"MultiTenancy.Bolgeler\", InplaceAdd = true)]\r\n        public Int32? BolgeId\r\n        {\r\n            get { return Fields.BolgeId[this]; }\r\n            set { Fields.BolgeId[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Bolge Bolge Adi\"), Expression(\"jBolge.[BolgeAdi]\")]\r\n        public String BolgeAdi\r\n        {\r\n            get { return Fields.BolgeAdi[this]; }\r\n            set { Fields.BolgeAdi[this] = value; }\r\n        }\r\n        //-------------------------------------------------------\r\n\r\n        [DisplayName(\"Sektor\"), Column(\"SektorID\"), ForeignKey(\"[dbo].[Sektorler]\", \"SektorID\"), LeftJoin(\"jSektor\"), TextualField(\"SektorSektorAdi\")]\r\n        [LookupEditor(\"MultiTenancy.Sektorler\", InplaceAdd = true)]\r\n        public Int32? SektorId\r\n        {\r\n            get { return Fields.SektorId[this]; }\r\n            set { Fields.SektorId[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Is Potansiyel Tip\"), Column(\"IsPotansiyelTipID\"), ForeignKey(\"[dbo].[IsPotansiyelTipleri]\", \"IsPotansiyelTipID\"), LeftJoin(\"jIsPotansiyelTip\"), TextualField(\"IsPotansiyelTipIsPotansiyelTipAdi\")]\r\n        [LookupEditor(\"MultiTenancy.IsPotansiyelTipleri\", InplaceAdd = true)]\r\n        public Int32? IsPotansiyelTipId\r\n        {\r\n            get { return Fields.IsPotansiyelTipId[this]; }\r\n            set { Fields.IsPotansiyelTipId[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Musteri Kategori\"), Column(\"MusteriKategoriID\"), ForeignKey(\"[dbo].[MusteriKategorileri]\", \"MusteriKategoriID\"), LeftJoin(\"jMusteriKategori\"), TextualField(\"MusteriKategoriMusteriKategoriAdi\")]\r\n        [LookupEditor(\"MultiTenancy.MusteriKategori\", InplaceAdd = true)]\r\n        public Int32? MusteriKategoriId\r\n        {\r\n            get { return Fields.MusteriKategoriId[this]; }\r\n            set { Fields.MusteriKategoriId[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Aktif\"), NotNull]\r\n        public Boolean? Aktif\r\n        {\r\n            get { return Fields.Aktif[this]; }\r\n            set { Fields.Aktif[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Id\"), Column(\"ID\"), Identity]\r\n        public Int32? Id\r\n        {\r\n            get { return Fields.Id[this]; }\r\n            set { Fields.Id[this] = value; }\r\n        }\r\n\r\n        \r\n\r\n       \r\n\r\n\r\n        [DisplayName(\"Sektor Sektor Adi\"), Expression(\"jSektor.[SektorAdi]\")]\r\n        public String SektorSektorAdi\r\n        {\r\n            get { return Fields.SektorSektorAdi[this]; }\r\n            set { Fields.SektorSektorAdi[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Is Potansiyel Tip Is Potansiyel Tip Adi\"), Expression(\"jIsPotansiyelTip.[IsPotansiyelTipAdi]\")]\r\n        public String IsPotansiyelTipIsPotansiyelTipAdi\r\n        {\r\n            get { return Fields.IsPotansiyelTipIsPotansiyelTipAdi[this]; }\r\n            set { Fields.IsPotansiyelTipIsPotansiyelTipAdi[this] = value; }\r\n        }\r\n\r\n        [DisplayName(\"Musteri Kategori Musteri Kategori Adi\"), Expression(\"jMusteriKategori.[MusteriKategoriAdi]\")]\r\n        public String MusteriKategoriMusteriKategoriAdi\r\n        {\r\n            get { return Fields.MusteriKategoriMusteriKategoriAdi[this]; }\r\n            set { Fields.MusteriKategoriMusteriKategoriAdi[this] = value; }\r\n        }\r\n        [DisplayName(\"Last Directory Update\"), Insertable(false), Updatable(false)]\r\n        public DateTime? LastDirectoryUpdate\r\n        {\r\n            get { return Fields.LastDirectoryUpdate[this]; }\r\n            set { Fields.LastDirectoryUpdate[this] = value; }\r\n        }\r\n\r\n        [Insertable(false), Updatable(false)]\r\n        public Int32? TenantId\r\n        {\r\n            get { return Fields.TenantId[this]; }\r\n            set { Fields.TenantId[this] = value; }\r\n        }\r\n\r\n        public Int32Field TenantIdField\r\n        {\r\n            get { return Fields.TenantId; }\r\n        }\r\n\r\n        IIdField IIdRow.IdField\r\n        {\r\n            get { return Fields.Id; }\r\n        }\r\n\r\n        StringField INameRow.NameField\r\n        {\r\n            get { return Fields.MusteriId; }\r\n        }\r\n\r\n        public static readonly RowFields Fields = new RowFields().Init();\r\n\r\n        public MusteriRow()\r\n            : base(Fields)\r\n        {\r\n        }\r\n\r\n        public class RowFields : LoggingRowFields\r\n        {\r\n            public StringField MusteriId;\r\n            public StringField MusteriAdi;\r\n            public StringField VergiNo;\r\n            public StringField VergiDairesi;\r\n            public StringField HesapKodu;\r\n            public Int32Field BolgeId;\r\n            public StringField BolgeAdi;\r\n\r\n            public Int32Field SektorId;\r\n            public Int32Field IsPotansiyelTipId;\r\n            public Int32Field MusteriKategoriId;\r\n            public BooleanField Aktif;\r\n            public Int32Field Id;\r\n            public readonly DateTimeField LastDirectoryUpdate;\r\n            public readonly Int32Field TenantId;\r\n\r\n            public StringField SektorSektorAdi;\r\n            public StringField IsPotansiyelTipIsPotansiyelTipAdi;\r\n            public StringField MusteriKategoriMusteriKategoriAdi;\r\n\r\n            public RowFields()\r\n                : base(\"[dbo].[Musteriler]\")\r\n            {\r\n                LocalTextPrefix = \"Crm.Musteri\";\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/comments/190391910","html_url":"https://github.com/volkanceylan/Serenity/issues/341#issuecomment-190391910","issue_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/341","id":190391910,"user":{"login":"volkanceylan","id":752470,"avatar_url":"https://avatars.githubusercontent.com/u/752470?v=3","gravatar_id":"","url":"https://api.github.com/users/volkanceylan","html_url":"https://github.com/volkanceylan","followers_url":"https://api.github.com/users/volkanceylan/followers","following_url":"https://api.github.com/users/volkanceylan/following{/other_user}","gists_url":"https://api.github.com/users/volkanceylan/gists{/gist_id}","starred_url":"https://api.github.com/users/volkanceylan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volkanceylan/subscriptions","organizations_url":"https://api.github.com/users/volkanceylan/orgs","repos_url":"https://api.github.com/users/volkanceylan/repos","events_url":"https://api.github.com/users/volkanceylan/events{/privacy}","received_events_url":"https://api.github.com/users/volkanceylan/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T21:04:41Z","updated_at":"2016-02-29T21:04:41Z","body":"MultiTenancy.Bolgeler bence burada bir sorun var, sizin lookup key ler yanlış olsa gerek, normalde LookupKey lerin Module.Tablo yapısında olması lazım. MultiTenancy root namespace. Sanki Crm.Bolgeler olmalı. Lookup editör dialog tipini bulmak için lookup key e bakar, dolayısıyla MultiTenancy.BolgelerDialog arar. Oysa sizin dialog MultiTenancy.Crm.BolgelerDialog. Crm.BolgelerDialog olsa bulabilir ama Multitenancy.BolgelerDialog bulamaz."}}