Giter Site home page Giter Site logo

nemiro-net / nemiro.data.dll Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 5.77 MB

Nemiro.Data is class library for .NET Framework 4+, which designed to work with databases Microsoft SQL Server. The library contains helper classes for working with data. Implements an object-oriented data access (Object-Relational Mapping, ORM). And also implements caching data.

Home Page: data.nemiro.net

License: Other

C# 80.18% CSS 3.86% ASP 3.39% Visual Basic 12.58%

nemiro.data.dll's Introduction

Nemiro.Data.dll library is designed to work with databases Microsoft SQL Server.

The library contains helper classes for working with data. Implements an object-oriented data access (Object-Relational Mapping, ORM). And also implements caching data.

To install Nemiro.Data.dll, run the following command in the Package Manager Console:

PM> Install-Package Nemiro.Data

Click here to lend your support to: Nemiro.Data and make a donation at pledgie.com !

SYSTEM REQUIREMENTS

  • Microsoft Windows XP, 7 or later with .NET Framework 4.0 or 4.5
  • Microsoft SQL Server 2005, 2008, 2008R2, 2012 or later
  • Microsoft Visual Studio 2010 or later

nemiro.data.dll's People

Contributors

alekseynemiro avatar

Watchers

James Cloos avatar  avatar

nemiro.data.dll's Issues

Entity collections

EN:
Add new methods for working with collections of entities.

RU:
Добавить методы для работы с коллекциями сущностей.

Object of type 'System.Int32' cannot be converted to type 'System.Nullable`

EN:
Error occurs when you use Nullable type in enumerations.

Workaround: Do not use Nullable types.

RU:
Ошибка возникает при вызове стандартного метода Load в классах ORM, которые содержат свойства типа перечислений (enum) и в которых допустимо нулевое (null) значение.

Временное решение: не использовать типы Nullable.

Unable to create a text field with a maximum length

EN:
The CreateTable method of BaseObject can not create text field with unlimited length.

RU:
Метод CreateTable базового класса ORM SQL Server не способен создавать текстовые поля без ограничения размера полей. Такие как например: nvarchar(max).

Unable to cast object of type 'System.String' to type 'System.Char'

EN:
Unable to cast object of type 'System.String' to type 'System.Char'

Workaround: use of type 'System.String'

RU:
В ORM при загрузке данных может возникнуть ошибка вида: Невозможно преобразовать объект типа "System.String" к типу "System.Char".

Временное решение:
Использовать тип String, вместо Char.

DataTable already belongs to another DataSet

EN:
When using the CopyTableToServer method exception may occur: "DataTable already belongs to another DataSet".

Workaround:

  • Use method CopyDataToServer.

Or

  • Creating a new DataTable.

RU:
При многоразовом использовании метода CopyTableToServer с одним экземпляром DataTable возникает ошибка, указывающая на то, что DataTable не может быть привязан к другому DataSet.

Например, ошибка может возникнуть при использовании метода CopyTableToServer в цикле, когда копирование данных на сервер необходимо передавать пачками.

Временное решение:

  • Использовать метод CopyDataToServer.

Или

  • Создавать новый DataTable.

Problems with numeric types

Problem actual for decimal() type.
When loading data, if entity property has type different from decimal, an exception may occur.

Unable to cast object of type "CustomCacheBinder" to "System.Type".

EN:
An error may occur in the SqlClient class when using custom CacheBinder for FileCache.

RU:
При использовании пользовательского класса приведения типов для файлового кэша, в классе SqlClient может возникнуть исключение вида: Не удалось привести тип объекта "CustomCacheBinder" к типу "System.Type".

Create interface for ORM classes

EN:
Create interface for ORM classes. This will create a classes for other data sources.

RU:
Необходимо создать единый интерфейс для базовых классов ORM, чтобы можно было реализовывать его при создании классов для других источников данных.

Improving CacheManager class

EN:
Improving CacheManager class.

RU:
Класс CacheManager создавался для внутренних нужд и вполне неплохо работает, однако иногда подобный класс нужен в рабочем проекте и использовать CacheManager очень неудобно. Следует сделать класс CacheManager более удобным.

Add to ORM attributes for create indexes and keys

EN:
Add to ORM attributes for create indexes and keys.

RU:
В ORM необходимо добавить поддержку вторичных ключей и индексов, чтобы можно было использовать классы для формирования более хорошей структуры базы данных.

Мне самому пока это не нужно, так что сделаю еще нескоро. Если кому-то нужно, пишите комментарии :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.