Skip to content

Commit

Permalink
Merge pull request #7 from victorioustr/ma_add_some_conditions_code_g…
Browse files Browse the repository at this point in the history
…enerator_to_work

Add Some Conditions for Code Generator to Work
  • Loading branch information
keremvaris authored Mar 12, 2024
2 parents 9611c6f + 9a8ab12 commit 6e33c75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 7 additions & 2 deletions docs/newmodulerdbms.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ title: Creating a Module (RDBMS)
If a relational database (*RDBMS*) entity object is to be created in the *Code First* approach,
it should be created under the **Concrete** folder in the **Entities** layer.

When a relational database will be used, the created class is expected to be implemented from the **IEntity** Interface.
***At the same time, it is a must that the created class name and the file name be the same***.
The following conditions must be met for the **DevArchitecture Code Generator** to work.

- When using a relational database, the class created is expected to implement the **IEntity** Interface.
- The class should not be **inherited** from a class with any properties.
- No **constructor** should be defined in the class.
- No **overrides** should be made in the class.
- The class name should not be the **same** as the file name.

**DevArchitecture Code Generator** will understand that you want to work with a relational
database and accordingly the code generator will generate the relevant methods and classes.
Expand Down
10 changes: 7 additions & 3 deletions i18n/tr/docusaurus-plugin-content-docs/current/newmodulerdbms.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
id: newmodulerdbms
title: Modül Oluşturma (RDBMS)
---
### İlişkisel Veri Tabanı
### İlişkisel Veri Tabanı

*Code First* yaklaşımında ilişkisel bir veri tabanı (*RDBMS*) varlık nesnesi
oluşturulacaksa **Entities** katmanında **Concrete** klasörü altında
oluşturulmalıdır.

İlişkisel veri tabanı kullanılacağı zaman yaratılan sınıfın **IEntity**
Interface'inden implement edilmesi beklenmektedir. ***Aynı zamanda oluşturulan sınıf ismiyle dosya isminin aynı olması bir zorunluluktur.***
**DevArchitecture Code Generator**'un çalışabilmesi için aşağıdaki şartlar sağlanmalıdır.
- İlişkisel veri tabanı kullanılacağı zaman yaratılan sınıfın **IEntity** Interface'inden implement edilmesi beklenmektedir.
- Sınıf herhangi bir property'si bulunan bir sınıftan **kalıtılmamalıdır**.
- Sınıf içinde harhangi bir **constructor** tanımlanmamalıdır.
- Sınıf içinde herhangi bir **override** yapılmamalıdır.
- Sınıf ismi ile dosya ismi **aynı** olmamalıdır.

**DevArchitecture Code Generator** sizin ilişkisel bir veri tabanı ile çalışmak
istediğinizi buradan anlayacak ve ona göre kod üreteci ilgili metot ve
Expand Down

0 comments on commit 6e33c75

Please sign in to comment.